From c83de87155d6ef52fb4afd8db66622c27d946670 Mon Sep 17 00:00:00 2001 From: alberskib Date: Sat, 6 Jun 2015 02:21:48 +0200 Subject: [PATCH] [#206] Fix issue related to windows path --- test/org/mockitoutil/ClassLoaders.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/org/mockitoutil/ClassLoaders.java b/test/org/mockitoutil/ClassLoaders.java index 75c83507cd..e88b4935df 100644 --- a/test/org/mockitoutil/ClassLoaders.java +++ b/test/org/mockitoutil/ClassLoaders.java @@ -358,7 +358,8 @@ private boolean excludes(String qualifiedName, Set 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(); }