Search in sources :

Example 71 with IText

use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.

the class TestIText method testConstructorsOK1.

@Test
public void testConstructorsOK1() {
    IText txt = ShapeFactory.INST.createText();
    assertNotNull(txt.getText());
    assertFalse(txt.getText().isEmpty());
}
Also used : IText(net.sf.latexdraw.models.interfaces.shape.IText) Test(org.junit.Test) HelperTest(net.sf.latexdraw.HelperTest)

Example 72 with IText

use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.

the class TestSVGText method testTextPosition.

@Theory
public void testTextPosition(@TextData(withParamVariants = true) final IText sh) {
    final IText s2 = produceOutputShapeFrom(sh);
    CompareShapeMatcher.INST.assertEqualsText(sh, s2);
}
Also used : IText(net.sf.latexdraw.models.interfaces.shape.IText) Theory(org.junit.experimental.theories.Theory)

Aggregations

IText (net.sf.latexdraw.models.interfaces.shape.IText)72 Test (org.junit.Test)65 HelperTest (net.sf.latexdraw.HelperTest)6 Platform (javafx.application.Platform)3 URL (java.net.URL)2 Collections (java.util.Collections)2 ResourceBundle (java.util.ResourceBundle)2 Initializable (javafx.fxml.Initializable)2 Point2D (javafx.geometry.Point2D)2 KeyCode (javafx.scene.input.KeyCode)2 ShapeProperties (net.sf.latexdraw.commands.shape.ShapeProperties)2 ShapeFactory (net.sf.latexdraw.models.ShapeFactory)2 IPlot (net.sf.latexdraw.models.interfaces.shape.IPlot)2 TextAreaAutoSize (net.sf.latexdraw.ui.TextAreaAutoSize)2 ViewText (net.sf.latexdraw.view.jfx.ViewText)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Optional (java.util.Optional)1 ExecutionException (java.util.concurrent.ExecutionException)1 Future (java.util.concurrent.Future)1