Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Waibel2015-05-24 15:38:13 -0400
committerFlorian Waibel2015-05-24 15:38:13 -0400
commit9332e67cbfab0772297b606e9d30ddfbf09bfc99 (patch)
tree33eb22198556327897477c20c74d5629e9cf5b58
parent47a6909223626e6b8a226e8c6fe9ae92a9e848f2 (diff)
downloadorg.eclipse.virgo.medic-9332e67cbfab0772297b606e9d30ddfbf09bfc99.tar.gz
org.eclipse.virgo.medic-9332e67cbfab0772297b606e9d30ddfbf09bfc99.tar.xz
org.eclipse.virgo.medic-9332e67cbfab0772297b606e9d30ddfbf09bfc99.zip
Test clean up - makes inner class static - removes generics warnings
-rw-r--r--org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/LoggingPrintStreamWrapperTests.java16
1 files changed, 6 insertions, 10 deletions
diff --git a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/LoggingPrintStreamWrapperTests.java b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/LoggingPrintStreamWrapperTests.java
index ec588f7..9e8f0f7 100644
--- a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/LoggingPrintStreamWrapperTests.java
+++ b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/log/impl/LoggingPrintStreamWrapperTests.java
@@ -16,15 +16,12 @@ 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;
-import org.eclipse.virgo.medic.log.impl.ExecutionStackAccessor;
-import org.eclipse.virgo.medic.log.impl.LoggingPrintStreamWrapper;
-import org.eclipse.virgo.medic.log.impl.SecurityManagerExecutionStackAccessor;
import org.junit.Before;
import org.junit.Test;
@@ -167,17 +164,16 @@ public class LoggingPrintStreamWrapperTests {
this.wrapper = new LoggingPrintStreamWrapper(printStream, getClass().getName(), new SecurityManagerExecutionStackAccessor(), new StubConfigurationProvider(), "theProperty");
}
- private final class StubConfigurationProvider implements ConfigurationProvider {
+ private final static class StubConfigurationProvider implements ConfigurationProvider {
- private final Properties configuration;
+ private final Hashtable<String, Object> configuration;
private StubConfigurationProvider() {
- this.configuration = new Properties();
- this.configuration.setProperty("theProperty", "true");
+ this.configuration = new Hashtable<String, Object>();
+ this.configuration.put("theProperty", "true");
}
- @SuppressWarnings("unchecked")
- public Dictionary getConfiguration() {
+ public Dictionary<String, Object> getConfiguration() {
return this.configuration;
}

Back to the top