Hi You can create your registry and then access the registered services.
Registry registry; public void setup(){ RegistryBuilder builder = new RegistryBuilder(); builder.add(AppModule.class); IOCUtilities.addDefaultModules(builder); registry = builder.build(); registry.performRegistryStartup(); } public void tearDown(){ if(registry != null){ registry.shutdown(); } } Between these, you can use registry.getService(MyService.class) to get your services. regards Taha On Nov 5, 2012, at 5:01 PM, membersound wrote: > Hi, > > how can I JUnit test a class within a Tapestry application? I mean: a class > where I make eg use of tapestry service bindings and @Inject my own services > there. > In the docs I just found how to test components and pages, but I want to > directly test against my business classes... > > Thanks > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Testing-of-classes-with-injected-resources-tp5717648.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org