Skip to content

Commit

Permalink
[mockito#206] Fix issue related to windows path
Browse files Browse the repository at this point in the history
  • Loading branch information
alberskib committed Jun 6, 2015
1 parent 2c59c46 commit c83de87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/org/mockitoutil/ClassLoaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ private boolean excludes(String qualifiedName, Set<String> packageFilters) {
}

private String classNameFor(File root, File file) {
String temp = file.getAbsolutePath().substring(root.getAbsolutePath().length() + 1).replace('/', '.');
String temp = file.getAbsolutePath().substring(root.getAbsolutePath().length() + 1).
replace(File.separatorChar, '.');
return temp.subSequence(0, temp.indexOf(".class")).toString();
}

Expand Down

0 comments on commit c83de87

Please sign in to comment.