Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Waibel2015-06-01 15:48:09 -0400
committerFlorian Waibel2015-06-01 15:48:09 -0400
commit0737438f123ff8384f4272dcc8b60f78df3103db (patch)
tree5cc1ff409ba15bfa08bb63330fe832da286b5754
parent9332e67cbfab0772297b606e9d30ddfbf09bfc99 (diff)
downloadorg.eclipse.virgo.medic-0737438f123ff8384f4272dcc8b60f78df3103db.tar.gz
org.eclipse.virgo.medic-0737438f123ff8384f4272dcc8b60f78df3103db.tar.xz
org.eclipse.virgo.medic-0737438f123ff8384f4272dcc8b60f78df3103db.zip
Reworks inner test classes to static inner classes
-rw-r--r--org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/TeeLoggingPrintStreamWrapperTests.java13
-rw-r--r--org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/logback/JoranLoggerContextConfigurerTests.java2
2 files changed, 7 insertions, 8 deletions
diff --git a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/TeeLoggingPrintStreamWrapperTests.java b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/TeeLoggingPrintStreamWrapperTests.java
index c4438b0..baed712 100644
--- a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/TeeLoggingPrintStreamWrapperTests.java
+++ b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/TeeLoggingPrintStreamWrapperTests.java
@@ -16,9 +16,9 @@ import static org.junit.Assert.assertEquals;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.Dictionary;
+import java.util.Hashtable;
import java.util.List;
import java.util.Locale;
-import java.util.Properties;
import org.eclipse.virgo.medic.impl.config.ConfigurationChangeListener;
import org.eclipse.virgo.medic.impl.config.ConfigurationProvider;
@@ -177,17 +177,16 @@ public class TeeLoggingPrintStreamWrapperTests {
new StubConfigurationProvider(), "theProperty");
}
- private final class StubConfigurationProvider implements ConfigurationProvider {
+ private static final class StubConfigurationProvider implements ConfigurationProvider {
- private final Properties configuration;
+ private final Hashtable<String, Object> configuration;
private StubConfigurationProvider() {
- this.configuration = new Properties();
- this.configuration.setProperty("theProperty", "tee");
+ this.configuration = new Hashtable<String, Object>();
+ this.configuration.put("theProperty", "tee");
}
- @SuppressWarnings("unchecked")
- public Dictionary getConfiguration() {
+ public Dictionary<String, Object> getConfiguration() {
return this.configuration;
}
diff --git a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/logback/JoranLoggerContextConfigurerTests.java b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/logback/JoranLoggerContextConfigurerTests.java
index b7afd78..d8009f1 100644
--- a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/logback/JoranLoggerContextConfigurerTests.java
+++ b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/logback/JoranLoggerContextConfigurerTests.java
@@ -47,7 +47,7 @@ public class JoranLoggerContextConfigurerTests {
assertNotNull(loggerContext.getLogger("abc"));
}
- private final class StubLoggingConfiguration implements LoggingConfiguration {
+ private static final class StubLoggingConfiguration implements LoggingConfiguration {
private final String configuration;

Back to the top