use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilStdGridStyle method testWidgetsGoodStateWhenGoodPencilUsed.
@Test
public void testWidgetsGoodStateWhenGoodPencilUsed() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesGrid, updateIns).execute();
assertTrue(titledPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilStdGridStyle method testWidgetsGoodStateWhenBadPencilUsed.
@Test
public void testWidgetsGoodStateWhenBadPencilUsed() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesRec, updateIns).execute();
assertFalse(titledPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandArcStyle method testControllerActivatedWhenSelectionArc.
@Test
public void testControllerActivatedWhenSelectionArc() {
new CompositeGUIVoidCommand(selectionAddArc, activateHand, updateIns).execute();
assertTrue(ins.isActivated());
assertTrue(titledPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandArcStyle method testArcTypeChordSelection.
@Test
public void testArcTypeChordSelection() {
new CompositeGUIVoidCommand(activateHand, selectionAddArc, selectionAddRec, selectionAddArc, updateIns, selectWedge, selectChord).execute();
assertEquals(ArcStyle.CHORD, ((IArc) drawing.getSelection().getShapeAt(0)).getArcStyle());
assertEquals(ArcStyle.CHORD, ((IArc) drawing.getSelection().getShapeAt(2)).getArcStyle());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandAxeStyle method testControllerDeactivatedWhenSelectionNotAxes.
@Test
public void testControllerDeactivatedWhenSelectionNotAxes() {
new CompositeGUIVoidCommand(selectionAddRec, activateHand, updateIns).execute();
assertFalse(ins.isActivated());
assertFalse(mainPane.isVisible());
}
Aggregations