Skip to content

Commit

Permalink
update unit test for commons-codec-1.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauma109 committed Sep 30, 2023
1 parent 7b16556 commit 994a902
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.15</version>
<version>1.16.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/jd/core/v1/MiscTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ public void testDaitchMokotoffSoundex() throws Exception {
String source = decompileSuccess(new ClassPathLoader(), new PlainTextPrinter(), internalClassName);

// Check decompiled source code
assertTrue(source.matches(PatternMaker.make(": 514 */", "for (String nextReplacement : replacements) {")));
assertTrue(source.matches(PatternMaker.make("for (String nextReplacement : replacements) {")));

// Recompile decompiled source code and check errors
assertTrue(CompilerUtil.compile("1.7", new InMemoryJavaSourceFileObject(internalClassName, source)));
assertTrue(CompilerUtil.compile("1.8", new InMemoryJavaSourceFileObject(internalClassName, source)));
}

@Test
Expand Down

0 comments on commit 994a902

Please sign in to comment.