You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2017/02/23 13:44:20 UTC

svn commit: r1784131 - /jmeter/trunk/test/src/org/apache/jorphan/reflect/TestClassFinder.java

Author: sebb
Date: Thu Feb 23 13:44:19 2017
New Revision: 1784131

URL: http://svn.apache.org/viewvc?rev=1784131&view=rev
Log:
Debug Windows test failure

Modified:
    jmeter/trunk/test/src/org/apache/jorphan/reflect/TestClassFinder.java

Modified: jmeter/trunk/test/src/org/apache/jorphan/reflect/TestClassFinder.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jorphan/reflect/TestClassFinder.java?rev=1784131&r1=1784130&r2=1784131&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jorphan/reflect/TestClassFinder.java (original)
+++ jmeter/trunk/test/src/org/apache/jorphan/reflect/TestClassFinder.java Thu Feb 23 13:44:19 2017
@@ -104,8 +104,11 @@ public class TestClassFinder {
     public void testFindAllClassesInJar() throws Exception {
         Path jarPath = Files.find(Paths.get(libDirs[0]), 1, (p, a) -> String.valueOf(p).endsWith(".jar")).findFirst()
                 .orElseThrow(() -> new FileNotFoundException("no jars found")).toRealPath();
+        final String loggerName = ClassFinder.class.getName(); // debug
+        org.apache.logging.log4j.core.config.Configurator.setAllLevels(loggerName, org.apache.logging.log4j.Level.DEBUG); // debug
         List<String> annotatedClasses = ClassFinder.findClasses(new String[] { jarPath.toString() },
                 c -> true);
+        org.apache.logging.log4j.core.config.Configurator.setAllLevels(loggerName, org.apache.logging.log4j.Level.INFO); // debug
         Assert.assertFalse("No classes found in: " + jarPath, annotatedClasses.isEmpty());
     }