2345678
import com.github.dreamhead.moco.bootstrap.parser.SocketArgsParser; public class SocketTask extends StartTask { public SocketTask(final String shutdownKey) { super(shutdownKey, new SocketArgsParser()); }
6667686970717273
assertThat(args.getConfigurationFile().get(), is("foo.json")); } @Test public void should_parse_socket() { StartArgs args = new SocketArgsParser().parse(new String[]{"start", "-c", "foo.json"}); assertThat(args.isSocket(), is(true)); }