TapestryAppInitializer { public Registry createRegistry() { registryCreatedTime = System.currentTimeMillis(); registry = builder.build(); return registry; } TapestryAppInitializer(Logger logger, String appPackage, String appName);  TapestryAppInitializer(Logger logger, SymbolProvider appProvider, String appName, String executionModes); void addModules(ModuleDef... moduleDefs); void addModules(Class... moduleClasses); Registry createRegistry(); void announceStartup();  }
@SuppressWarnings("unchecked") @Test public void testLoadAppModule() { Registry registry = new TapestryAppInitializer(logger, "org.apache.tapestry5.integration.app0", "foo").createRegistry(); Transformer<String> s1 = registry.getService("Service1", Transformer.class); assertEquals(s1.transform("a"), "A"); }
@Test public void testNoAppModule() { new TapestryAppInitializer(logger, "non_existing.package", "foo").createRegistry(); }