use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilPlotStyle method testSelectLINEStylePencil.
@Test
public void testSelectLINEStylePencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesPlot, updateIns).execute();
PlotStyle style = plotStyleCB.getSelectionModel().getSelectedItem();
selectplotStyleCB.execute(PlotStyle.LINE);
PlotStyle newStyle = plotStyleCB.getSelectionModel().getSelectedItem();
assertEquals(newStyle, ((IPlot) pencil.createShapeInstance()).getPlotStyle());
assertNotEquals(style, newStyle);
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilPlotStyle method testWidgetsGoodStateWhenGoodPencilUsed.
@Test
public void testWidgetsGoodStateWhenGoodPencilUsed() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesPlot, updateIns).execute();
assertTrue(titledPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilShadowStyle method testPickShadowColourPencil.
@Test
public void testPickShadowColourPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesRec, checkShadow, updateIns).execute();
Color col = shadowColB.getValue();
pickShadCol.execute();
assertEquals(shadowColB.getValue(), pencil.createShapeInstance().getShadowCol().toJFX());
assertNotEquals(col, shadowColB.getValue());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilShadowStyle method testWidgetsGoodStateWhenGoodPencilUsed.
@Test
public void testWidgetsGoodStateWhenGoodPencilUsed() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesRec, updateIns).execute();
assertTrue(titledPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilShadowStyle method testWidgetsGoodStateWhenBadPencilUsed.
@Test
public void testWidgetsGoodStateWhenBadPencilUsed() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesGrid, updateIns).execute();
assertFalse(titledPane.isVisible());
}
Aggregations