Repository: servicemix Updated Branches: refs/heads/master df42014d5 -> 8aadedf6c
SM-2299: Add itest for cxf-wsn example (closes #10) Thanks to Wim Verreydt for the pull request! (cherry picked from commit fed2b5548125f941be35adeef1d1d45f64d32601) Project: http://git-wip-us.apache.org/repos/asf/servicemix/repo Commit: http://git-wip-us.apache.org/repos/asf/servicemix/commit/8aadedf6 Tree: http://git-wip-us.apache.org/repos/asf/servicemix/tree/8aadedf6 Diff: http://git-wip-us.apache.org/repos/asf/servicemix/diff/8aadedf6 Branch: refs/heads/master Commit: 8aadedf6cf3239c62f3efa1537811f2c316fdd51 Parents: df42014 Author: Wim Verreydt <[email protected]> Authored: Tue May 13 15:00:36 2014 +0200 Committer: Gert Vanthienen <[email protected]> Committed: Tue May 13 16:32:21 2014 +0200 ---------------------------------------------------------------------- .../itests/ExamplesIntegrationTests.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/servicemix/blob/8aadedf6/itests/src/test/scala/org/apache/servicemix/itests/ExamplesIntegrationTests.scala ---------------------------------------------------------------------- diff --git a/itests/src/test/scala/org/apache/servicemix/itests/ExamplesIntegrationTests.scala b/itests/src/test/scala/org/apache/servicemix/itests/ExamplesIntegrationTests.scala index 15cdc32..deeacbb 100644 --- a/itests/src/test/scala/org/apache/servicemix/itests/ExamplesIntegrationTests.scala +++ b/itests/src/test/scala/org/apache/servicemix/itests/ExamplesIntegrationTests.scala @@ -22,6 +22,8 @@ import org.apache.camel.{Exchange, Processor} import org.ops4j.pax.exam.spi.reactors.{PerMethod, PerClass, ExamReactorStrategy} import org.ops4j.pax.exam.Configuration import org.ops4j.pax.exam.junit.PaxExam +import org.ops4j.pax.exam.CoreOptions._ +import org.ops4j.pax.exam.karaf.options.KarafDistributionOption._ /** * Base configuration for all examples' integration tests @@ -111,6 +113,10 @@ class CamelExamplesTest extends ExamplesIntegrationTests { */ @ExamReactorStrategy(Array(classOf[PerMethod])) class CxfExamplesTest extends ExamplesIntegrationTests { + + @Configuration + override def config() = super.config() ++ cxfWsnExampleTestConfiguration + @Test def testCxfJaxRsExample = testWithFeature(false,"examples-cxf-jaxrs", "camel-http") { expect { logging.containsMessage( _.contains("Setting the server's publish address to be /crm")) } @@ -155,4 +161,15 @@ class CxfExamplesTest extends ExamplesIntegrationTests { def testCxfWsSecuritySignature = testWithFeature("examples-cxf-ws-security-signature") { expect { logging.containsMessage( _.contains("Setting the server's publish address to be /HelloWorldSecurity")) } } + + @Test + def testCxfWsn = testWithFeature("examples-cxf-wsn-receive","examples-cxf-wsn-notifier") { + expect { logging.containsMessage( _.contains("### YOU GOT MAIL ####\n")) } + } + + def cxfWsnExampleTestConfiguration = + Array( + editConfigurationFilePut("etc/org.apache.cxf.wsn.cfg", "cxf.wsn.activemq.username", "smx"), + editConfigurationFilePut("etc/org.apache.cxf.wsn.cfg", "cxf.wsn.activemq.password", "smx") + ) }
