All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dreamhead.moco.setting.SocketSetting Maven / Gradle / Ivy

Go to download

Moco is an easy setup stub framework, mainly focusing on testing and integration.

There is a newer version: 1.5.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy