Debian Codegraph @

jetty-maven-plugin/src/it/jetty-run-distro-mojo-it/postbuild.groovy

raw
1
2 System.out.println( "running postbuild.groovy port " + jettyStopPort + ", key:" + jettyStopKey )
3
4 int port = Integer.parseInt( jettyStopPort )
5
6 Socket s=new Socket(InetAddress.getByName("127.0.0.1"),port )
7
8 OutputStream out=s.getOutputStream()
9 out.write(( jettyStopKey +"\r\nforcestop\r\n").getBytes())
10 out.flush()
11 s.close()
12
13
14 File buildLog = new File( basedir, 'build.log' )
15 assert buildLog.text.contains( 'Forking command line' )
16 assert buildLog.text.contains( 'Running org.eclipse.jetty.maven.plugin.it.TestGetContent')
17 assert buildLog.text.contains( 'pingServlet ok')
18 assert buildLog.text.contains( 'helloServlet')