use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilCoordDimStyle method testControllerNotVisibleWithPencil.
@Test
public void testControllerNotVisibleWithPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesRec, updateIns).execute();
assertFalse(titledPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilDotStyle method testSelectFillingNotEnabledWhenNonFillableStylePencil.
@Test
public void testSelectFillingNotEnabledWhenNonFillableStylePencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesDot, updateIns).execute();
setDotStyle.execute(DotStyle.ASTERISK);
assertTrue(fillingB.isDisabled());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilDotStyle method testSelectBARStylePencil.
@Test
public void testSelectBARStylePencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesDot, updateIns).execute();
setDotStyle.execute(DotStyle.BAR);
assertEquals(dotCB.getSelectionModel().getSelectedItem(), ((IDot) pencil.createShapeInstance()).getDotStyle());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilDotStyle method testSelectDOTStylePencil.
@Test
public void testSelectDOTStylePencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesDot, updateIns).execute();
setDotStyle.execute(DotStyle.DOT);
assertEquals(dotCB.getSelectionModel().getSelectedItem(), ((IDot) pencil.createShapeInstance()).getDotStyle());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilDotStyle method testWidgetsGoodStateWhenGoodPencilUsed.
@Test
public void testWidgetsGoodStateWhenGoodPencilUsed() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesDot, updateIns).execute();
assertTrue(titledPane.isVisible());
}
Aggregations