use of limelight.ui.model.MockParentPanel in project limelight by slagyr.
the class TextInputPanelLayoutTest method clearsTextLayout.
@Test
public void clearsTextLayout() throws Exception {
assumeTrue(TestUtil.notHeadless());
MockTextInputPanel panel = new MockTextInputPanel();
MockParentPanel parent = new MockParentPanel();
parent.add(panel);
Layouts.on(panel, TextInputPanelLayout.instance);
assertEquals(true, panel.mockModel.clearLayoutsCalled);
}
use of limelight.ui.model.MockParentPanel in project limelight by slagyr.
the class SingleLineTextModelTest method setUp.
@Before
public void setUp() {
assumeTrue(TestUtil.notHeadless());
panel = new TextBoxPanel();
MockParentPanel parent = new MockParentPanel();
parent.add(panel);
parent.setSize(100, 20);
Layouts.on(panel, panel.getDefaultLayout());
model = panel.getModel();
model.setTypedLayoutFactory(MockTypedLayoutFactory.instance);
}
Aggregations