On Fri, May 9, 2008 at 10:21 AM, Kulchar <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm a bit new to all this and I was wondering if someone could point me to a > simple example. The example for which I'm looking is how to test a > servicemix maven xbean.xml project. I imagine and hope it would go > something like the following... > > 1) mvn test (under either the whole project or the service-assembly > project) > 2) which would build the service-assembly > 3) start up a (embedded?) servicemix server > 4) run the tests under (service-assembly) src/test/[java/...|resources] > 5) give the typical maven results > 6) stop the servicemix (embedded?) server > 7) return to the command prompt > > I know I can do this with a servicemix.xml static configuration, as I have. > However, I don't wish to duplicate code in xbean.xml (non-static) files with > the servicemix.xml (static) configuration.
I would suggest that you take a look at the integration testing instead of the static servicemix.xml file: http://servicemix.apache.org/integration-testing-in-spring.html The integration testing with Spring XML files is really easy and pretty flexible. Bruce -- perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' Apache ActiveMQ - http://activemq.org/ Apache Camel - http://activemq.org/camel/ Apache ServiceMix - http://servicemix.org/ Apache Geronimo - http://geronimo.apache.org/ Blog: http://bruceblog.org/
