public static FixtureInteraction createInteraction(String interactionClassName) { return createInteraction(interactionClassName, ClassLoader.getSystemClassLoader()); }
public static FixtureInteraction createInteraction(String interactionClassName) { return createInteraction(interactionClassName, ClassLoader.getSystemClassLoader()); }
public StatementExecutor() { this(new SlimExecutionContext(JavaSlimFactory.createInteraction(null))); }
public StatementExecutor() { this(new SlimExecutionContext(JavaSlimFactory.createInteraction(null))); }
public static Options parseCommandLine(String[] args) { CommandLine commandLine = new CommandLine(OPTION_DESCRIPTOR); if (commandLine.parse(args)) { boolean verbose = commandLine.hasOption("v"); String interactionClassName = commandLine.getOptionArgument("i", "interactionClass"); String portString = commandLine.getArgument("port"); int port = (portString == null) ? 1 : Integer.parseInt(portString); String statementTimeoutString = commandLine.getOptionArgument("s", "statementTimeout"); Integer statementTimeout = (statementTimeoutString == null) ? null : Integer.parseInt(statementTimeoutString); boolean daemon = commandLine.hasOption("d"); String sslParameterClassName = commandLine.getOptionArgument("ssl", "parameterClass"); boolean useSSL = commandLine.hasOption("ssl"); FixtureInteraction interaction = createInteraction(interactionClassName); return new Options(verbose, port, interaction, daemon, statementTimeout, useSSL, sslParameterClassName); } return null; }
public static Options parseCommandLine(String[] args) { CommandLine commandLine = new CommandLine(OPTION_DESCRIPTOR); if (commandLine.parse(args)) { boolean verbose = commandLine.hasOption("v"); String interactionClassName = commandLine.getOptionArgument("i", "interactionClass"); String portString = commandLine.getArgument("port"); int port = (portString == null) ? 1 : Integer.parseInt(portString); String statementTimeoutString = commandLine.getOptionArgument("s", "statementTimeout"); Integer statementTimeout = (statementTimeoutString == null) ? null : Integer.parseInt(statementTimeoutString); boolean daemon = commandLine.hasOption("d"); String sslParameterClassName = commandLine.getOptionArgument("ssl", "parameterClass"); boolean useSSL = commandLine.hasOption("ssl"); FixtureInteraction interaction = createInteraction(interactionClassName); return new Options(verbose, port, interaction, daemon, statementTimeout, useSSL, sslParameterClassName); } return null; }
@Override public SlimClient build() { final SlimService.Options options = SlimService.parseCommandLine(getSlimFlags()); Integer statementTimeout = options != null ? options.statementTimeout : null; FixtureInteraction interaction = options != null ? options.interaction : JavaSlimFactory.createInteraction(null, classLoader); SlimServer slimServer = createSlimServer(interaction, statementTimeout, isDebug()); return new InProcessSlimClient(getTestSystemName(), slimServer, getExecutionLogListener(), classLoader); }
@Override public SlimClient build() { final SlimService.Options options = SlimService.parseCommandLine(getSlimFlags()); Integer statementTimeout = options != null ? options.statementTimeout : null; FixtureInteraction interaction = options != null ? options.interaction : JavaSlimFactory.createInteraction(null, classLoader); SlimServer slimServer = createSlimServer(interaction, statementTimeout, isDebug()); return new InProcessSlimClient(getTestSystemName(), slimServer, getExecutionLogListener(), classLoader); }