This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

JUnit testing & spring dm server

Jun 13th, 2010, 03:05 PM

Hi,

I am trying to find a testing guide for spring dm server. Currently I tried adapting greenpages.jpa testcases to my code or spring dm without any luck. Same goes for springdm AbstractConfigurableBundleCreatorTests which I wasn't able to make it work and also I find very complex.

I am able to run this within eclipse but it throws a stackoverflow during startup because it recursively tries to get an instance of the logger (I am using slf4j). The GroovyManager currently is a dummy class which doesn't do anything at all.

This seems the easy way to do tests within a bundle but I wonder what will happen if the test is cross-bundles...

Also in order to make this work, I had to include a couple of dependences ONLY on my maven configuration, and already using maven along with the manifest.mf of the bundle feels weird.