@@ -61,104 +61,104 @@ This file is part of the iText (R) project.
6161@ Category (IntegrationTest .class )
6262public class EllipseSvgNodeRendererIntegrationTest extends SvgIntegrationTest {
6363
64- public static final String sourceFolder = "./src/test/resources/com/itextpdf/svg/renderers/impl/EllipseSvgNodeRendererIntegrationTest/" ;
65- public static final String destinationFolder = "./target/test/com/itextpdf/svg/renderers/impl/EllipseSvgNodeRendererIntegrationTest/" ;
64+ public static final String SOURCE_FOLDER = "./src/test/resources/com/itextpdf/svg/renderers/impl/EllipseSvgNodeRendererIntegrationTest/" ;
65+ public static final String DESTINATION_FOLDER = "./target/test/com/itextpdf/svg/renderers/impl/EllipseSvgNodeRendererIntegrationTest/" ;
6666
6767 @ BeforeClass
6868 public static void beforeClass () {
69- ITextTest .createDestinationFolder (destinationFolder );
69+ ITextTest .createDestinationFolder (DESTINATION_FOLDER );
7070 }
7171
7272 @ Test
7373 public void basicEllipseTest () throws IOException , InterruptedException , java .io .IOException {
74- convertAndCompare (sourceFolder , destinationFolder , "basicEllipse" );
74+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "basicEllipse" );
7575 }
7676
7777 @ Test
7878 public void ellipseCxCyAbsentTest () throws IOException , InterruptedException , java .io .IOException {
79- convertAndCompare (sourceFolder , destinationFolder , "ellipseCxCyAbsent" );
79+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseCxCyAbsent" );
8080 }
8181
8282 @ Test
8383 public void ellipseCxAbsentTest () throws IOException , InterruptedException , java .io .IOException {
84- convertAndCompare (sourceFolder , destinationFolder , "ellipseCxAbsent" );
84+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseCxAbsent" );
8585 }
8686
8787 @ Test
8888 public void ellipseCxNegativeTest () throws IOException , InterruptedException , java .io .IOException {
89- convertAndCompare (sourceFolder , destinationFolder , "ellipseCxNegative" );}
89+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseCxNegative" );}
9090
9191 @ Test
9292 public void ellipseCyNegativeTest () throws IOException , InterruptedException , java .io .IOException {
93- convertAndCompare (sourceFolder , destinationFolder , "ellipseCyNegative" );
93+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseCyNegative" );
9494 }
9595
9696 @ Test
9797 public void ellipseCyAbsentTest () throws IOException , InterruptedException , java .io .IOException {
98- convertAndCompare (sourceFolder , destinationFolder , "ellipseCyAbsent" );
98+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseCyAbsent" );
9999 }
100100
101101 @ Test
102102 //TODO: update cmp_ when DEVSIX-3119
103103 public void ellipseRxAbsentTest () throws IOException , InterruptedException , java .io .IOException {
104- convertAndCompare (sourceFolder , destinationFolder , "ellipseRxAbsent" );
104+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseRxAbsent" );
105105 }
106106
107107 @ Test
108108 //TODO: update cmp_ when DEVSIX-3119
109109 public void ellipseRyAbsentTest () throws IOException , InterruptedException , java .io .IOException {
110- convertAndCompare (sourceFolder , destinationFolder , "ellipseRyAbsent" );
110+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseRyAbsent" );
111111 }
112112
113113 @ Test
114114 public void ellipseRxNegativeTest () throws IOException , InterruptedException , java .io .IOException {
115- convertAndCompare (sourceFolder , destinationFolder , "ellipseRxNegative" );
115+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseRxNegative" );
116116 }
117117
118118 @ Test
119119 public void ellipseRyNegativeTest () throws IOException , InterruptedException , java .io .IOException {
120- convertAndCompare (sourceFolder , destinationFolder , "ellipseRyNegative" );
120+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseRyNegative" );
121121 }
122122
123123 @ Test
124124 public void ellipseTranslatedTest () throws IOException , InterruptedException , java .io .IOException {
125- convertAndCompare (sourceFolder , destinationFolder , "ellipseTranslated" );
125+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseTranslated" );
126126 }
127127
128128 @ Test
129129 public void ellipseRotatedTest () throws IOException , InterruptedException , java .io .IOException {
130- convertAndCompare (sourceFolder , destinationFolder , "ellipseRotated" );
130+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseRotated" );
131131 }
132132
133133 @ Test
134134 public void ellipseScaledUpTest () throws IOException , InterruptedException , java .io .IOException {
135- convertAndCompare (sourceFolder , destinationFolder , "ellipseScaledUp" );
135+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseScaledUp" );
136136 }
137137
138138 @ Test
139139 public void ellipseScaledDownTest () throws IOException , InterruptedException , java .io .IOException {
140- convertAndCompare (sourceFolder , destinationFolder , "ellipseScaledDown" );
140+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseScaledDown" );
141141 }
142142
143143 @ Test
144144 public void ellipseScaledXYTest () throws IOException , InterruptedException , java .io .IOException {
145- convertAndCompare (sourceFolder , destinationFolder , "ellipseScaledXY" );
145+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseScaledXY" );
146146 }
147147
148148 @ Test
149149 public void ellipseSkewXTest () throws IOException , InterruptedException , java .io .IOException {
150- convertAndCompare (sourceFolder , destinationFolder , "ellipseSkewX" );
150+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseSkewX" );
151151 }
152152
153153 @ Test
154154 public void ellipseSkewYTest () throws IOException , InterruptedException , java .io .IOException {
155- convertAndCompare (sourceFolder , destinationFolder , "ellipseSkewY" );
155+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseSkewY" );
156156 }
157157
158158 @ Test
159- public void parseParametersAndCalculateCoordinatesWithBetterPrecisionEllipseTest () throws java .io .IOException , InterruptedException {
160- String filename = "parseParametersAndCalculateCoordinatesWithBetterPrecisionEllipseTest .pdf" ;
161- PdfDocument doc = new PdfDocument (new PdfWriter (destinationFolder + filename ));
159+ public void parseParametersAndCalculateCoordinatesWithBetterPrecisionEllipseTest () throws java .io .IOException {
160+ String filename = "calculateCoordinatesWithBetterPrecision .pdf" ;
161+ PdfDocument doc = new PdfDocument (new PdfWriter (DESTINATION_FOLDER + filename ));
162162 doc .addNewPage ();
163163
164164 EllipseSvgNodeRenderer ellipseRenderer = new EllipseSvgNodeRenderer ();
@@ -191,6 +191,6 @@ public void parseParametersAndCalculateCoordinatesWithBetterPrecisionEllipseTest
191191 @ Test
192192 // TODO: DEVSIX-3932 update cmp_ after fix
193193 public void ellipseWithBigStrokeWidthTest () throws IOException , InterruptedException , java .io .IOException {
194- convertAndCompare (sourceFolder , destinationFolder , "ellipseWithBigStrokeWidth" );
194+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseWithBigStrokeWidth" );
195195 }
196196}
0 commit comments