servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject git commit: SM-2299: Add itest for cxf-wsn example (closes #10) Thanks to Wim Verreydt for the pull request!
Date Tue, 13 May 2014 18:55:48 GMT
Repository: servicemix
Updated Branches:
  refs/heads/servicemix-5.0.x 2a768f5d9 -> fed2b5548


SM-2299: Add itest for cxf-wsn example (closes #10)
Thanks to Wim Verreydt for the pull request!


Project: http://git-wip-us.apache.org/repos/asf/servicemix/repo
Commit: http://git-wip-us.apache.org/repos/asf/servicemix/commit/fed2b554
Tree: http://git-wip-us.apache.org/repos/asf/servicemix/tree/fed2b554
Diff: http://git-wip-us.apache.org/repos/asf/servicemix/diff/fed2b554

Branch: refs/heads/servicemix-5.0.x
Commit: fed2b5548125f941be35adeef1d1d45f64d32601
Parents: 2a768f5
Author: Wim Verreydt <wim@anova.be>
Authored: Tue May 13 15:00:36 2014 +0200
Committer: Gert Vanthienen <gertv@apache.org>
Committed: Tue May 13 16:24:35 2014 +0200

----------------------------------------------------------------------
 .../itests/ExamplesIntegrationTests.scala          | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/servicemix/blob/fed2b554/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 eef5189..852a483 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.{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
@@ -110,6 +112,10 @@ class CamelExamplesTest extends ExamplesIntegrationTests {
  * Tests for the CXF examples
  */
 class CxfExamplesTest extends ExamplesIntegrationTests {
+
+  @Configuration
+  override def config() = super.config() ++  cxfWsnExampleTestConfiguration
+
   @Test
   def testCxfJaxRsExample = testWithFeature("examples-cxf-jaxrs", "camel-http") {
     expect { logging.containsMessage( _.contains("Setting the server's publish address to
be /crm")) }
@@ -154,4 +160,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")
+    )
 }


Mime
View raw message