Debian Codegraph @

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

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