Repository: maven-surefire Updated Branches: refs/heads/master a717b0cb4 -> 63963d676
[SUREFIRE] refactoring Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/57662e59 Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/57662e59 Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/57662e59 Branch: refs/heads/master Commit: 57662e590f5208ab7816cdb5b151557eab2d68d1 Parents: a717b0c Author: Tibor17 <tibo...@lycos.com> Authored: Thu Dec 17 21:57:33 2015 +0100 Committer: Tibor17 <tibo...@lycos.com> Committed: Thu Dec 17 21:57:33 2015 +0100 ---------------------------------------------------------------------- .../org/apache/maven/surefire/booter/LazyTestsToRun.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/57662e59/surefire-booter/src/main/java/org/apache/maven/surefire/booter/LazyTestsToRun.java ---------------------------------------------------------------------- diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/LazyTestsToRun.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/LazyTestsToRun.java index c94f032..3a2eb26 100644 --- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/LazyTestsToRun.java +++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/LazyTestsToRun.java @@ -23,9 +23,11 @@ import java.io.PrintStream; import java.util.Collections; import java.util.Iterator; -import org.apache.maven.surefire.util.ReflectionUtils; import org.apache.maven.surefire.util.TestsToRun; +import static org.apache.maven.surefire.booter.CommandReader.getReader; +import static org.apache.maven.surefire.util.ReflectionUtils.loadClass; + /** * A variant of TestsToRun that is provided with test class names * from an {@code System.in}. @@ -58,8 +60,7 @@ final class LazyTestsToRun private final class BlockingIterator implements Iterator<Class<?>> { - private final Iterator<String> it = - CommandReader.getReader().getIterableClasses( originalOutStream ).iterator(); + private final Iterator<String> it = getReader().getIterableClasses( originalOutStream ).iterator(); public boolean hasNext() { @@ -69,14 +70,13 @@ final class LazyTestsToRun public Class<?> next() { String clazz = it.next(); - return ReflectionUtils.loadClass( Thread.currentThread().getContextClassLoader(), clazz ); + return loadClass( Thread.currentThread().getContextClassLoader(), clazz ); } public void remove() { throw new UnsupportedOperationException(); } - } /**