Exemplo n.º 1
0
 @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();
 }
Exemplo n.º 2
0
 @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();
 }