Skip to content

Commit

Permalink
Merge pull request #37 from nbauma109/codecov-css-dup2-x2
Browse files Browse the repository at this point in the history
added unit test testCSS for DUP2_X2
  • Loading branch information
nbauma109 authored Nov 6, 2022
2 parents bb1a7f3 + 6ccba58 commit 8acac30
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/java/org/jd/core/v1/MiscTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1522,4 +1522,13 @@ private void test(Object ref, Map map, Object key) {
assertTrue(CompilerUtil.compile("1.8", new InMemoryJavaSourceFileObject(internalClassName, source)));
}

@Test
public void testCSS() throws Exception {
String internalClassName = javax.swing.text.html.CSS.class.getName().replace('.', '/');
String source = decompileSuccess(new ClassPathLoader(), new PlainTextPrinter(), internalClassName);

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

}

0 comments on commit 8acac30

Please sign in to comment.