-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from fujaba/fix/case-sensitive-class-resolution
Resolve classes from classpath directories case-sensitively
- Loading branch information
Showing
2 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/test/java/org/fulib/scenarios/library/DirLibraryTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.fulib.scenarios.library; | ||
|
||
import org.junit.Test; | ||
|
||
import java.io.File; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
public class DirLibraryTest | ||
{ | ||
|
||
@Test | ||
public void hasClass() | ||
{ | ||
final File classesDir = new File("build/classes/java/test"); | ||
final DirLibrary library = new DirLibrary(classesDir); | ||
|
||
assertTrue(library.hasClass("org/fulib/scenarios/library/DirLibraryTest")); | ||
assertFalse(library.hasClass("org/fulib/scenarios/library/ClassThatDoesNotExist")); | ||
assertFalse(library.hasClass("org/fulib/scenarios/library/dirlibrarytest")); | ||
assertFalse(library.hasClass("Org/Fulib/Scenarios/Library/DirLibraryTest")); | ||
} | ||
} |