Skip to content

Commit 3155969

Browse files
author
Kate Ivanova
committed
Add new strokeWidthMeasureUnitsTest and refactor test
DEVSIX-3432
1 parent 35f23db commit 3155969

File tree

5 files changed

+64
-3
lines changed

5 files changed

+64
-3
lines changed

svg/src/test/java/com/itextpdf/svg/renderers/StrokeTest.java

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ This file is part of the iText (R) project.
4242
*/
4343
package com.itextpdf.svg.renderers;
4444

45+
import com.itextpdf.styledxmlparser.LogMessageConstant;
4546
import com.itextpdf.test.ITextTest;
47+
import com.itextpdf.test.annotations.LogMessage;
48+
import com.itextpdf.test.annotations.LogMessages;
4649
import com.itextpdf.test.annotations.type.IntegrationTest;
4750

4851
import java.io.IOException;
@@ -84,7 +87,15 @@ public void noLineStrokeWidthTest() throws IOException, InterruptedException {
8487

8588
@Test
8689
//TODO: update cmp-file after DEVSIX-2258
87-
public void advanced_stroke_Test() throws IOException, InterruptedException {
88-
convertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "stroke_advanced");
90+
public void advancedStrokeTest() throws IOException, InterruptedException {
91+
convertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "strokeAdvanced");
8992
}
90-
}
93+
94+
@Test
95+
//TODO: update cmp-file after DEVSIX-3432
96+
@LogMessages(messages = @LogMessage
97+
(messageTemplate = LogMessageConstant.UNKNOWN_ABSOLUTE_METRIC_LENGTH_PARSED, count = 12))
98+
public void strokeWidthMeasureUnitsTest() throws IOException, InterruptedException {
99+
convertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "strokeWidthMeasureUnitsTest");
100+
}
101+
}
Lines changed: 50 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)