use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilTextStyle 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 TestPencilTextStyle method testSelectBPencil.
@Test
public void testSelectBPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesText, updateIns).execute();
clickOnbButton.execute();
assertEquals(TextPosition.BOT, ((IText) pencil.createShapeInstance()).getTextPosition());
assertTrue(bButton.isSelected());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilTextStyle method testSelectBLPencil.
@Test
public void testSelectBLPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesText, updateIns).execute();
clickOnblButton.execute();
assertEquals(TextPosition.BOT_LEFT, ((IText) pencil.createShapeInstance()).getTextPosition());
assertTrue(blButton.isSelected());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilTextStyle method testSelectTLPencil.
@Test
public void testSelectTLPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesText, updateIns).execute();
clickOntlButton.execute();
assertEquals(TextPosition.TOP_LEFT, ((IText) pencil.createShapeInstance()).getTextPosition());
assertTrue(tlButton.isSelected());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilTextStyle method testSelectLPencil.
@Test
public void testSelectLPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesText, updateIns).execute();
clickOnlButton.execute();
assertEquals(TextPosition.LEFT, ((IText) pencil.createShapeInstance()).getTextPosition());
assertTrue(lButton.isSelected());
}
Aggregations