7
7
import java .util .logging .Logger ;
8
8
import org .junit .Test ;
9
9
10
- public class PatchParserTest {
11
- private static Logger LOG = Logger .getLogger (PatchParser .class .getSimpleName ());
10
+ public class PatchParserUtilTest {
11
+ private static Logger LOG = Logger .getLogger (PatchParserUtil .class .getSimpleName ());
12
12
13
13
private static final String NEW_DIFF =
14
14
"@@ -1,6 +1,6 @@\n <html>\n <head></head>\n <body>\n -<font>\n +<font> \n </body> \n </html>" ;
@@ -63,7 +63,7 @@ public void testThatOldLineIsEmptyIfOutsideOfDiff() {
63
63
64
64
getIntegerOptionalMap (patch );
65
65
66
- final PatchParser pp = new PatchParser (patch );
66
+ final PatchParserUtil pp = new PatchParserUtil (patch );
67
67
68
68
assertThat (pp .isLineInDiff (999 )) //
69
69
.isFalse ();
@@ -124,7 +124,7 @@ public void testThatLineTableCanBeRetrieved2() {
124
124
private Integer findLineToComment (String patch , int commentLint ) {
125
125
getIntegerOptionalMap (patch );
126
126
127
- return new PatchParser (patch ) //
127
+ return new PatchParserUtil (patch ) //
128
128
.findLineInDiff (commentLint ) //
129
129
.orElse (null );
130
130
}
@@ -136,7 +136,7 @@ private Map<Integer, Optional<Integer>> getIntegerOptionalMap(final String patch
136
136
sb .append (i + 1 + " | " + diffLines [i ] + "\n " );
137
137
}
138
138
final Map <Integer , Optional <Integer >> map =
139
- new PatchParser (patch ) //
139
+ new PatchParserUtil (patch ) //
140
140
.getNewLineToOldLineTable ();
141
141
for (Map .Entry <Integer , Optional <Integer >> e : map .entrySet ()) {
142
142
sb .append (e .getKey () + " : " + e .getValue ().orElse (null ) + "\n " );
0 commit comments