Repository: logging-log4j2
Updated Branches:
  refs/heads/LOG4J2-1651 f8f14e4b9 -> 33ed792da


Refactor fror reuse for upcomming test.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/db74f854
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/db74f854
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/db74f854

Branch: refs/heads/LOG4J2-1651
Commit: db74f8542ca751b101c8b9ac1c8f65f1db91afc2
Parents: f8f14e4
Author: Gary Gregory <[email protected]>
Authored: Fri Nov 4 22:32:55 2016 -0700
Committer: Gary Gregory <[email protected]>
Committed: Fri Nov 4 22:32:55 2016 -0700

----------------------------------------------------------------------
 .../core/config/plugins/processor/PluginProcessorTest.java     | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/db74f854/log4j-core/src/test/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessorTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessorTest.java
 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessorTest.java
index 9c37af4..31c4fe7 100644
--- 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessorTest.java
+++ 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/config/plugins/processor/PluginProcessorTest.java
@@ -24,6 +24,7 @@ import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.JUnit4;
 
+import java.io.IOException;
 import java.net.URL;
 import java.util.Enumeration;
 import java.util.Map;
@@ -39,9 +40,14 @@ public class PluginProcessorTest {
 
     @BeforeClass
     public static void setUpClass() throws Exception {
+        loadCacheFiles();
+    }
+
+    static PluginCache loadCacheFiles() throws IOException {
         final Enumeration<URL> resources =
             
PluginProcessor.class.getClassLoader().getResources(PluginProcessor.PLUGIN_CACHE_FILE);
         pluginCache.loadCacheFiles(resources);
+        return pluginCache;
     }
 
     @Test

Reply via email to