kdbond
17 years agoNew Contributor
Starting Mock Service Runner from within JUnit were test uses Axis2 client
I am having a problem with running a mock server from within my JUnit tests. If I use the Maven plugin and just run the mock goal everything starts up and runs as expected. However, when I run from JUnit all the log output looks correct and the port is opened and listening, but when I request the WSDL I just get a blank result. I can't find any error messages anywhere so I am not sure where to look for the problem. I suspect a jar version conflict, but I have tried soap UI 2.5.1 and 3.0-beta-2 and they both have the same result, and the 3.0-beta-2 have the smaller set of jar conflicts.
Baring getting this to run, I was trying to run the mock goal from Maven in the background of the test phase, but this does not work because if I run noBlock false the server starts and immediately exits and obviously if I block I will have to terminate the server before the tests run anyway.
Any idea how to get this working?
Baring getting this to run, I was trying to run the mock goal from Maven in the background of the test phase, but this does not work because if I run noBlock false the server starts and immediately exits and obviously if I block I will have to terminate the server before the tests run anyway.
Any idea how to get this working?