Search in sources :

Example 6 with Picture

use of net.sf.latexdraw.model.api.shape.Picture in project latexdraw by arnobl.

the class TestPicture method testDuplicate.

@Test
public void testDuplicate() {
    final Picture dup = shape.duplicate();
    assertEquals(shape.getPathSource(), dup.getPathSource());
}
Also used : Picture(net.sf.latexdraw.model.api.shape.Picture) Test(org.junit.jupiter.api.Test)

Example 7 with Picture

use of net.sf.latexdraw.model.api.shape.Picture in project latexdraw by arnobl.

the class TestPicture method testCopy.

@Test
public void testCopy() {
    final Picture pic2 = ShapeFactory.INST.createPicture(ShapeFactory.INST.createPoint());
    pic2.copy(shape);
    assertEquals(shape.getPathSource(), pic2.getPathSource());
}
Also used : Picture(net.sf.latexdraw.model.api.shape.Picture) Test(org.junit.jupiter.api.Test)

Aggregations

Picture (net.sf.latexdraw.model.api.shape.Picture)7 File (java.io.File)3 Test (org.junit.jupiter.api.Test)2 URL (java.net.URL)1 Point2D (javafx.geometry.Point2D)1 Color (javafx.scene.paint.Color)1 FileChooser (javafx.stage.FileChooser)1 Point (net.sf.latexdraw.model.api.shape.Point)1 NotNull (org.jetbrains.annotations.NotNull)1 Test (org.junit.Test)1 Theory (org.junit.experimental.theories.Theory)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 MethodSource (org.junit.jupiter.params.provider.MethodSource)1