Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarsotovalero committed Apr 5, 2022
1 parent 2d7fa5e commit 38d59a6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package se.kth.depclean.core.analysis;

import java.nio.file.Path;
import java.nio.file.Paths;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
Expand All @@ -16,8 +18,10 @@ void tearDown() {
}

@Test
void dummy() throws Exception {
Assertions.assertEquals("acd/cde", ClassFileVisitorUtils.getChild("tmp/acd/cde"));
void testGetChild() {
Path parent = Paths.get("Users", "Documents", "SVG");
Path child = Paths.get("Documents", "SVG");
Assertions.assertEquals(child.toString(), ClassFileVisitorUtils.getChild(parent.toString()));
}

}

0 comments on commit 38d59a6

Please sign in to comment.