17 years ago
Maven integration - Mock service don't start
Hi,
I'm having a hard time making maven start my Mock Services before it executes my client's unit tests.
Here is my pom's plugin definition :
Then I call a "mvn package" but my unit tests can't connect to the Web Services so I get a "Connection refused" exception.
If I start my Mock Services in another command line window using the "mvn eviware:maven-soapui-plugin:mock" command, both Mock Services start well and my unit tests run perfectly when I call "mvn package".
What do I do wrong ?
Thanks a lot for your help.
Sebastien
I'm having a hard time making maven start my Mock Services before it executes my client's unit tests.
Here is my pom's plugin definition :
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<projectFile>${basedir}/vilinknotifiertool-soapui-project.xml</projectFile>
<settingsFile>soapui-settings.xml</settingsFile>
</configuration>
<executions>
<execution>
<id>WSMock</id>
<phase>test</phase>
<configuration>
<mockService>MyMockService1</mockService>
</configuration>
<goals>
<goal>eviware:maven-soapui-plugin:mock</goal>
</goals>
</execution>
<execution>
<id>WSMockAxeda</id>
<phase>test</phase>
<configuration>
<mockService>MyMockService2</mockService>
</configuration>
<goals>
<goal>eviware:maven-soapui-plugin:mock</goal>
</goals>
</execution>
</executions>
</plugin>
Then I call a "mvn package" but my unit tests can't connect to the Web Services so I get a "Connection refused" exception.
If I start my Mock Services in another command line window using the "mvn eviware:maven-soapui-plugin:mock" command, both Mock Services start well and my unit tests run perfectly when I call "mvn package".
What do I do wrong ?
Thanks a lot for your help.
Sebastien