@Test public void test_includeApplicationDefaultCSS_emptyList() { replayDefault(); List<CSS> cssList = cssCommand.includeApplicationDefaultCSS(); assertNotNull(cssList); verifyDefault(); }
@Test public void test_includeApplicationDefaultCSS_registerMockComponent_emptyList() throws Exception { ICssExtensionRole testCssExtMock = registerComponentMock(ICssExtensionRole.class, "testCssExt"); expect(testCssExtMock.getCssList()).andReturn(Collections.<CSS>emptyList()).once(); replayDefault(); List<CSS> cssList = cssCommand.includeApplicationDefaultCSS(); assertNotNull(cssList); verifyDefault(); }
@Test public void test_includeApplicationDefaultCSS_registerMockComponent_oneElem() throws Exception { ICssExtensionRole testCssExtMock = registerComponentMock(ICssExtensionRole.class, "testCssExt"); expect(testCssExtMock.getCssList()) .andReturn(Arrays.<CSS>asList(new CSSString(":celRes/test.css", getContext()))) .once(); replayDefault(); List<CSS> cssList = cssCommand.includeApplicationDefaultCSS(); assertNotNull(cssList); verifyDefault(); }