Re: integration testing in spring

2007-09-27 Thread James Strachan
BTW I've added an integration test for the bridge sample...

http://svn.apache.org/repos/asf/incubator/servicemix/trunk/samples/bridge/bridge-sa-itest/

which from a single spring XML boots up an ActiveMQ broker, ServiceMix
with some components and the SA and then Camel to do some integration
testing (though I've not yet completed the Camel stuff to fire
messages into the bridge then do some Mock endpoint testing to ensure
things work as expected).


On 25/09/2007, James Strachan [EMAIL PROTECTED] wrote:
 I've taken a first stab at adding an easy way of integration testing
 JBI artifacts (shared libraries, components and service assemblies)
 using a simple Spring XML notation that can be included into any JUnit
 test case...

 http://cwiki.apache.org/SM/integration-testing-in-spring.html

 This allows you to depend on artifacts using their maven groupId and
 artifactId and then the version is inferred (using the generated
 META-INF/maven/dependencies.properties via the jbi-maven-plugin).

 My idea was to show how we can boot up servicemix with some artifacts
 from the local repo, then use Camel to fire in messages and make
 assertions and so forth to test that the JBI artifacts actually deploy
 correctly and do what is expected etc.

 Feedback most appreciated if this can be improved...


 --
 James
 ---
 http://macstrac.blogspot.com/

 Open Source SOA
 http://open.iona.com



-- 
James
---
http://macstrac.blogspot.com/

Open Source SOA
http://open.iona.com


Re: integration testing in spring

2007-09-25 Thread Guillaume Nodet
It would be nice to use that and do some functional test / load
testing using the soap ui maven plugin too...

On 9/25/07, James Strachan [EMAIL PROTECTED] wrote:
 I've taken a first stab at adding an easy way of integration testing
 JBI artifacts (shared libraries, components and service assemblies)
 using a simple Spring XML notation that can be included into any JUnit
 test case...

 http://cwiki.apache.org/SM/integration-testing-in-spring.html

 This allows you to depend on artifacts using their maven groupId and
 artifactId and then the version is inferred (using the generated
 META-INF/maven/dependencies.properties via the jbi-maven-plugin).

 My idea was to show how we can boot up servicemix with some artifacts
 from the local repo, then use Camel to fire in messages and make
 assertions and so forth to test that the JBI artifacts actually deploy
 correctly and do what is expected etc.

 Feedback most appreciated if this can be improved...

 --
 James
 ---
 http://macstrac.blogspot.com/

 Open Source SOA
 http://open.iona.com



-- 
Cheers,
Guillaume Nodet

Blog: http://gnodet.blogspot.com/