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:30 GMT
Repository: servicemix
Updated Branches:
  refs/heads/servicemix-5.1.x a87b9b6b4 -> 8e8499efa


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/8e8499ef
Tree: http://git-wip-us.apache.org/repos/asf/servicemix/tree/8e8499ef
Diff: http://git-wip-us.apache.org/repos/asf/servicemix/diff/8e8499ef

Branch: refs/heads/servicemix-5.1.x
Commit: 8e8499efa067d70dd7496290272279b5b580ca75
Parents: a87b9b6
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:25:30 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/servicemix/blob/8e8499ef/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")
+    )
 }


Mime
View raw message