test
The test goal performs a test of a SOA composite application. Oracle SOA Suite provides a native Maven implementation for this goal.
You must first create tests in Oracle JDeveloper before running the test goal. For more information about creating tests using JDeveloper, see Automating Testing of SOA Composite Applications.
You must also include a jndi.properites file before running the test goal. Edit the following line in the POM file to point to a jndi.properties file: <jndi.properties.input>${basedir}/jndi.properties</jndi.properties.input>
The following shows a sample jndi.properties file:
java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
java.naming.provider.url=t3://servername:7103/soa-infra
java.naming.security.principal=weblogic
java.naming.security.credentials=welcome1
dedicated.connection=true
dedicated.rmicontext=true
The following command compiles the composite, packages the composite into a SAR file, deploys the SAR file to the server, and tests the composite.
mvn verify