public void testGetWeather()
throws IOException, NodeException, InterruptedException, ExecutionException
{
NodeEnvironment env = new NodeEnvironment();
if (useNetty) {
env.setHttpContainer(new NettyHttpContainer());
}
// Use separate ports between netty and non-netty because netty might take a while to close them
int port = PORT + (useNetty ? 1 : 0);
NodeScript script = env.createScript("server.js", new File("./target/test-classes/argo/server.js"),
new String[] { String.valueOf(port) });