@Test public final void testRemoveHtmlComponent() { // mocks ZkButton button = createMock(ZkButton.class); // expect removing component ZkHtmlComponentUtil.removeComponentFromContainer(button, (Component) component); // perform test replayAll(); component.removeHtmlComponent(button); verifyAll(); }
@Test public final void testAddHtmlComponent() { // mocks ZkButton button = createMock(ZkButton.class); // expect adding component ZkHtmlComponentUtil.addComponentToContainer(button, (Component) component); // perform test replayAll(); component.addHtmlComponent(button); verifyAll(); }