/** * Render a sub-view * @param cls the class of the sub-view */ public void render(Class<? extends SubView> cls) { int saved = context().nestLevel; getInstance(cls).renderPartial(); if (context().nestLevel != saved) { throw new WebAppException("View "+ cls.getSimpleName() +" not complete"); } } }
/** * Render a sub-view * @param cls the class of the sub-view */ public void render(Class<? extends SubView> cls) { int saved = context().nestLevel; getInstance(cls).renderPartial(); if (context().nestLevel != saved) { throw new WebAppException("View "+ cls.getSimpleName() +" not complete"); } } }
/** * Render a sub-view * @param cls the class of the sub-view */ public void render(Class<? extends SubView> cls) { int saved = context().nestLevel; getInstance(cls).renderPartial(); if (context().nestLevel != saved) { throw new WebAppException("View "+ cls.getSimpleName() +" not complete"); } } }
public static <T> Injector testBlock(Class<? extends SubView> block, Class<T> api, T impl, Module... modules) { Injector injector = createMockInjector(api, impl, modules); injector.getInstance(block).renderPartial(); flushOutput(injector); return injector; }
public static <T> Injector testBlock(Class<? extends SubView> block, Class<T> api, T impl, Module... modules) { Injector injector = createMockInjector(api, impl, modules); injector.getInstance(block).renderPartial(); flushOutput(injector); return injector; }
public static <T> Injector testBlock(Class<? extends SubView> block, Class<T> api, T impl, Module... modules) { Injector injector = createMockInjector(api, impl, modules); injector.getInstance(block).renderPartial(); flushOutput(injector); return injector; }