com.github.dreamhead.moco.setting.SocketSetting Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moco-core Show documentation
Show all versions of moco-core Show documentation
Moco is an easy setup stub framework, mainly focusing on testing and integration.
package com.github.dreamhead.moco.setting;
import com.github.dreamhead.moco.MocoConfig;
import com.github.dreamhead.moco.RequestMatcher;
import com.github.dreamhead.moco.SocketResponseSetting;
import static com.github.dreamhead.moco.util.Configs.configItem;
public class SocketSetting extends BaseSetting
implements Setting, SocketResponseSetting {
public SocketSetting(final RequestMatcher matcher) {
super(matcher);
}
@Override
protected BaseSetting createSetting(final RequestMatcher matcher) {
return new SocketSetting(matcher);
}
@Override
protected RequestMatcher configMatcher(final RequestMatcher matcher, final MocoConfig config) {
return configItem(matcher, config);
}
}