Skip to content

Commit

Permalink
Transition to JUnit 5, re #68
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Jan 16, 2024
1 parent 82dbcdb commit 0d71c37
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/test/java/org/libj/lang/ResourcesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,4 @@ public void testWalkJUnitRunner() throws IOException {
});
assertEquals(6, counter.get());
}

@Test
public void testListLibJRunner() throws IOException {
final AtomicInteger counter = new AtomicInteger();
Resources.list(ClassLoader.getSystemClassLoader(), "org/junit/", (final URL root, final String entry, final boolean isDirectory) -> {
if (logger.isDebugEnabled()) { logger.debug(root + entry); }
counter.getAndIncrement();
return true;
});
assertEquals(30, counter.get());
}

@Test
public void testWalkLibJRunner() throws IOException {
final AtomicInteger counter = new AtomicInteger();
Resources.walk(ClassLoader.getSystemClassLoader(), "org/junit/", (final URL root, final String entry, final boolean isDirectory) -> {
if (logger.isDebugEnabled()) { logger.debug(root + entry); }
counter.getAndIncrement();
return true;
});
assertEquals(354, counter.get());
}
}

0 comments on commit 0d71c37

Please sign in to comment.