@@ -61,104 +61,104 @@ This file is part of the iText (R) project.
61
61
@ Category (IntegrationTest .class )
62
62
public class EllipseSvgNodeRendererIntegrationTest extends SvgIntegrationTest {
63
63
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/" ;
66
66
67
67
@ BeforeClass
68
68
public static void beforeClass () {
69
- ITextTest .createDestinationFolder (destinationFolder );
69
+ ITextTest .createDestinationFolder (DESTINATION_FOLDER );
70
70
}
71
71
72
72
@ Test
73
73
public void basicEllipseTest () throws IOException , InterruptedException , java .io .IOException {
74
- convertAndCompare (sourceFolder , destinationFolder , "basicEllipse" );
74
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "basicEllipse" );
75
75
}
76
76
77
77
@ Test
78
78
public void ellipseCxCyAbsentTest () throws IOException , InterruptedException , java .io .IOException {
79
- convertAndCompare (sourceFolder , destinationFolder , "ellipseCxCyAbsent" );
79
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseCxCyAbsent" );
80
80
}
81
81
82
82
@ Test
83
83
public void ellipseCxAbsentTest () throws IOException , InterruptedException , java .io .IOException {
84
- convertAndCompare (sourceFolder , destinationFolder , "ellipseCxAbsent" );
84
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseCxAbsent" );
85
85
}
86
86
87
87
@ Test
88
88
public void ellipseCxNegativeTest () throws IOException , InterruptedException , java .io .IOException {
89
- convertAndCompare (sourceFolder , destinationFolder , "ellipseCxNegative" );}
89
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseCxNegative" );}
90
90
91
91
@ Test
92
92
public void ellipseCyNegativeTest () throws IOException , InterruptedException , java .io .IOException {
93
- convertAndCompare (sourceFolder , destinationFolder , "ellipseCyNegative" );
93
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseCyNegative" );
94
94
}
95
95
96
96
@ Test
97
97
public void ellipseCyAbsentTest () throws IOException , InterruptedException , java .io .IOException {
98
- convertAndCompare (sourceFolder , destinationFolder , "ellipseCyAbsent" );
98
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseCyAbsent" );
99
99
}
100
100
101
101
@ Test
102
102
//TODO: update cmp_ when DEVSIX-3119
103
103
public void ellipseRxAbsentTest () throws IOException , InterruptedException , java .io .IOException {
104
- convertAndCompare (sourceFolder , destinationFolder , "ellipseRxAbsent" );
104
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseRxAbsent" );
105
105
}
106
106
107
107
@ Test
108
108
//TODO: update cmp_ when DEVSIX-3119
109
109
public void ellipseRyAbsentTest () throws IOException , InterruptedException , java .io .IOException {
110
- convertAndCompare (sourceFolder , destinationFolder , "ellipseRyAbsent" );
110
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseRyAbsent" );
111
111
}
112
112
113
113
@ Test
114
114
public void ellipseRxNegativeTest () throws IOException , InterruptedException , java .io .IOException {
115
- convertAndCompare (sourceFolder , destinationFolder , "ellipseRxNegative" );
115
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseRxNegative" );
116
116
}
117
117
118
118
@ Test
119
119
public void ellipseRyNegativeTest () throws IOException , InterruptedException , java .io .IOException {
120
- convertAndCompare (sourceFolder , destinationFolder , "ellipseRyNegative" );
120
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseRyNegative" );
121
121
}
122
122
123
123
@ Test
124
124
public void ellipseTranslatedTest () throws IOException , InterruptedException , java .io .IOException {
125
- convertAndCompare (sourceFolder , destinationFolder , "ellipseTranslated" );
125
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseTranslated" );
126
126
}
127
127
128
128
@ Test
129
129
public void ellipseRotatedTest () throws IOException , InterruptedException , java .io .IOException {
130
- convertAndCompare (sourceFolder , destinationFolder , "ellipseRotated" );
130
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseRotated" );
131
131
}
132
132
133
133
@ Test
134
134
public void ellipseScaledUpTest () throws IOException , InterruptedException , java .io .IOException {
135
- convertAndCompare (sourceFolder , destinationFolder , "ellipseScaledUp" );
135
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseScaledUp" );
136
136
}
137
137
138
138
@ Test
139
139
public void ellipseScaledDownTest () throws IOException , InterruptedException , java .io .IOException {
140
- convertAndCompare (sourceFolder , destinationFolder , "ellipseScaledDown" );
140
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseScaledDown" );
141
141
}
142
142
143
143
@ Test
144
144
public void ellipseScaledXYTest () throws IOException , InterruptedException , java .io .IOException {
145
- convertAndCompare (sourceFolder , destinationFolder , "ellipseScaledXY" );
145
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseScaledXY" );
146
146
}
147
147
148
148
@ Test
149
149
public void ellipseSkewXTest () throws IOException , InterruptedException , java .io .IOException {
150
- convertAndCompare (sourceFolder , destinationFolder , "ellipseSkewX" );
150
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseSkewX" );
151
151
}
152
152
153
153
@ Test
154
154
public void ellipseSkewYTest () throws IOException , InterruptedException , java .io .IOException {
155
- convertAndCompare (sourceFolder , destinationFolder , "ellipseSkewY" );
155
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseSkewY" );
156
156
}
157
157
158
158
@ 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 ));
162
162
doc .addNewPage ();
163
163
164
164
EllipseSvgNodeRenderer ellipseRenderer = new EllipseSvgNodeRenderer ();
@@ -191,6 +191,6 @@ public void parseParametersAndCalculateCoordinatesWithBetterPrecisionEllipseTest
191
191
@ Test
192
192
// TODO: DEVSIX-3932 update cmp_ after fix
193
193
public void ellipseWithBigStrokeWidthTest () throws IOException , InterruptedException , java .io .IOException {
194
- convertAndCompare (sourceFolder , destinationFolder , "ellipseWithBigStrokeWidth" );
194
+ convertAndCompare (SOURCE_FOLDER , DESTINATION_FOLDER , "ellipseWithBigStrokeWidth" );
195
195
}
196
196
}
0 commit comments