Created
October 18, 2012 21:48
-
-
Save cjmamo/3914958 to your computer and use it in GitHub Desktop.
Testing Web Services from JUnit using SoapUI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
public class CalculatorServiceTestCase { | |
@Test | |
public void testCalculatorService() throws Exception { | |
SoapUITestCaseRunner testCaseRunner = new SoapUITestCaseRunner(); | |
SoapUIMockServiceRunner mockServiceRunner = new SoapUIMockServiceRunner(); | |
testCaseRunner.setProjectFile("src/test/resources/calculator-soapui-project.xml"); | |
mockServiceRunner.setProjectFile("src/test/resources/calculator-soapui-project.xml"); | |
mockServiceRunner.run(); | |
testCaseRunner.run(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<repositories> | |
<repository> | |
<id>eviware</id> | |
<url>http://www.soapui.org/repository/maven2</url> | |
</repository> | |
</repositories> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencies> | |
... | |
<dependency> | |
<groupId>commons-lang</groupId> | |
<artifactId>commons-lang</artifactId> | |
<version>2.4</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>commons-beanutils</groupId> | |
<artifactId>commons-beanutils</artifactId> | |
<version>1.7.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>commons-collections</groupId> | |
<artifactId>commons-collections</artifactId> | |
<version>3.2.1</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>log4j</groupId> | |
<artifactId>log4j</artifactId> | |
<version>1.2.8</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>commons-cli</groupId> | |
<artifactId>commons-cli</artifactId> | |
<version>1.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>saxon</groupId> | |
<artifactId>saxon-dom</artifactId> | |
<version>9.1.0.8j</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.jms</groupId> | |
<artifactId>jms</artifactId> | |
<version>1.1</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.mail</groupId> | |
<artifactId>mail</artifactId> | |
<version>1.4</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>servlet-api</artifactId> | |
<version>2.5-20081211</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>wsdl4j</groupId> | |
<artifactId>wsdl4j</artifactId> | |
<version>1.6.2</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>eviware</groupId> | |
<artifactId>soapui</artifactId> | |
<version>4.5.1</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>eviware</groupId> | |
<artifactId>soapui-xmlbeans</artifactId> | |
<version>4.5.1</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>xmlbeans</groupId> | |
<artifactId>xbean_xpath</artifactId> | |
<version>2.4.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>xmlbeans</groupId> | |
<artifactId>xbean</artifactId> | |
<version>fixed-2.4.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.httpcomponents</groupId> | |
<artifactId>httpclient</artifactId> | |
<version>4.1.1</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>fife</groupId> | |
<artifactId>rsyntaxtextarea</artifactId> | |
<version>2.0.1</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>xerces</groupId> | |
<artifactId>xercesImpl</artifactId> | |
<version>2.9.1</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>bouncycastle</groupId> | |
<artifactId>bcprov-jdk15</artifactId> | |
<version>144</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>xmlunit</groupId> | |
<artifactId>xmlunit</artifactId> | |
<version>1.2</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>amf</groupId> | |
<artifactId>flex-messaging-common</artifactId> | |
<version>1.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>amf</groupId> | |
<artifactId>flex-messaging-core</artifactId> | |
<version>1.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>eviware</groupId> | |
<artifactId>soap-xmlbeans</artifactId> | |
<version>1.2</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>saxon</groupId> | |
<artifactId>saxon</artifactId> | |
<version>9.1.0.8j</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>jetty</groupId> | |
<artifactId>jetty</artifactId> | |
<version>6.1.26</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>jetty</groupId> | |
<artifactId>jetty-util</artifactId> | |
<version>6.1.26</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment