Search in sources :

Example 1 with NoBadaboomCheck

use of net.sf.latexdraw.NoBadaboomCheck in project latexdraw by arnobl.

the class TestSVGPathSegMoveto method testToString.

@Test
@NoBadaboomCheck
public void testToString() {
    final AtomicBoolean done = new AtomicBoolean(false);
    SVGParserUtils.INSTANCE.parseSVGPath(seg.toString(), pathSeg -> {
        done.set(true);
        final SVGPathSegMoveto seg2 = (SVGPathSegMoveto) pathSeg;
        assertEquals(seg.getX(), seg2.getX(), 0.0001);
        assertEquals(seg.getY(), seg2.getY(), 0.0001);
        assertEquals(seg.isRelative(), seg2.isRelative());
    });
    assertTrue(done.get());
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) SVGPathSegMoveto(net.sf.latexdraw.parser.svg.path.SVGPathSegMoveto) Test(org.junit.jupiter.api.Test) NoBadaboomCheck(net.sf.latexdraw.NoBadaboomCheck)

Aggregations

AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 NoBadaboomCheck (net.sf.latexdraw.NoBadaboomCheck)1 SVGPathSegMoveto (net.sf.latexdraw.parser.svg.path.SVGPathSegMoveto)1 Test (org.junit.jupiter.api.Test)1