Posted by mriem
on January 13, 2012 at 10:50 AM PST
In the previous articles we have concentrated on testing using Glassfish. But can you use the same
recipe to do testing on Weblogic. The answer is YES, but ..... Yea you know there is always a caveat.
First make sure you have Weblogic installed properly. Note I did the testing with the latest 12c version,
so your mileage may vary.
Download the attached zip file again and follow along. In order for this to work you will have to have
Weblogic installed with an adminstrative username and password of
weblogic and you will have to have
it listening on port
7001. Note see the Cargo documentation if you wish to change any of that.
In the POM file you will notice the
integration.container.home property that is where your WLS
server is located at usually
$BEA_HOME/wlserver, and also the
points to the management domain you use for testing, in this case it is set to
And the command line to invoke it is quite similar to the ones you have seen before, see below
mvn -Dintegration.skip=false -Dintegration.container.skip=false clean verify
Now you will be able to do integration testing against a Weblogic server. I hope this was helpful!
Let me know if there are any questions :)