MCPcopy Index your code
hub / github.com/Col-E/Recaf / testJar

Method testJar

src/test/java/me/coley/recaf/ResourceInputTest.java:24–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 private final static int CLASSES_IN_CALC_JAR = 9;
23
24 @Test
25 public void testJar() {
26 try {
27 Path file = getClasspathFile("inherit.jar");
28 JavaResource resource = new JarResource(file);
29 assertEquals(CLASSES_IN_INHERIT_JAR, resource.getClasses().size());
30 } catch(IOException ex) {
31 fail(ex);
32 }
33 }
34
35 @Test
36 public void testJarResourcesDoNotContainClasses() {

Callers

nothing calls this directly

Calls 3

getClasspathFileMethod · 0.80
sizeMethod · 0.45
getClassesMethod · 0.45

Tested by

no test coverage detected