make this test dynamic instead of hardcoded version...

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
olivier lamy 2020-11-27 13:26:00 +10:00
parent 662efb35c0
commit 54924213e8
2 changed files with 2 additions and 1 deletions

View File

@ -103,6 +103,7 @@
<jettyStopKey>${jetty.stopKey}</jettyStopKey>
<jettyStopPort>${jetty.stopPort}</jettyStopPort>
<maven.surefire.version>${maven.surefire.version}</maven.surefire.version>
<servletApiVersion>${servlet.api.version}</servletApiVersion>
</scriptVariables>
<goals>
<goal>clean</goal>

View File

@ -21,7 +21,7 @@ assert buildLog.text.contains( 'Started Server' )
assert buildLog.text.contains( '(1a) >> javax.servlet.ServletContextListener loaded from jar:' )
assert buildLog.text.contains( '/org/eclipse/jetty/toolchain/jetty-servlet-api/4.0.4/jetty-servlet-api-4.0.4.jar!/javax/servlet/ServletContextListener.class << (1b)' )
assert buildLog.text.contains( '/org/eclipse/jetty/toolchain/jetty-servlet-api/'+servletApiVersion+'/jetty-servlet-api-'+servletApiVersion+'.jar!/javax/servlet/ServletContextListener.class << (1b)' )
assert buildLog.text.contains( '(2a) >> mca.common.CommonService loaded from file:' )
assert buildLog.text.contains( 'common/target/classes/mca/common/CommonService.class << (2b)' )