Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Frost2010-12-16 06:40:02 -0500
committerChristopher Frost2010-12-16 06:40:02 -0500
commit892e3980a65bae61af53606aa61a8c474654f6e9 (patch)
tree15ce3f520acab906fdea8b42187de5accad2b5a5 /org.eclipse.virgo.medic.integrationtest/src
parentc294d87b552e1c7a6219cccbff27c6cac8704f60 (diff)
downloadorg.eclipse.virgo.medic-892e3980a65bae61af53606aa61a8c474654f6e9.tar.gz
org.eclipse.virgo.medic-892e3980a65bae61af53606aa61a8c474654f6e9.tar.xz
org.eclipse.virgo.medic-892e3980a65bae61af53606aa61a8c474654f6e9.zip
328123 Removed the LogDumpContributor and all references
Diffstat (limited to 'org.eclipse.virgo.medic.integrationtest/src')
-rw-r--r--org.eclipse.virgo.medic.integrationtest/src/test/java/org/eclipse/virgo/medic/dump/test/DumpIntegrationTests.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/org.eclipse.virgo.medic.integrationtest/src/test/java/org/eclipse/virgo/medic/dump/test/DumpIntegrationTests.java b/org.eclipse.virgo.medic.integrationtest/src/test/java/org/eclipse/virgo/medic/dump/test/DumpIntegrationTests.java
index 5b84fd2..37c195c 100644
--- a/org.eclipse.virgo.medic.integrationtest/src/test/java/org/eclipse/virgo/medic/dump/test/DumpIntegrationTests.java
+++ b/org.eclipse.virgo.medic.integrationtest/src/test/java/org/eclipse/virgo/medic/dump/test/DumpIntegrationTests.java
@@ -70,19 +70,18 @@ public class DumpIntegrationTests {
}
@Test
- @SuppressWarnings("unchecked")
public void dumpDirectoryConfiguration() throws IOException, InterruptedException {
Configuration configuration = getConfiguration("org.eclipse.virgo.medic");
assertNotNull(configuration);
- Dictionary properties = new Hashtable<String, String>();
+ Dictionary<String, String> properties = new Hashtable<String, String>();
properties.put("dump.root.directory", "target/dumps/1");
configuration.update(properties);
Thread.sleep(2000);
- ServiceReference serviceReference = this.bundleContext.getServiceReference(DumpGenerator.class.getName());
+ ServiceReference<?> serviceReference = this.bundleContext.getServiceReference(DumpGenerator.class.getName());
DumpGenerator dumpGenerator = (DumpGenerator)this.bundleContext.getService(serviceReference);
dumpGenerator.generateDump("bleurgh");
@@ -115,12 +114,11 @@ public class DumpIntegrationTests {
}
@Test
- @SuppressWarnings("unchecked")
public void exclusionConfiguration() throws IOException, InterruptedException {
Configuration configuration = getConfiguration("org.eclipse.virgo.medic");
assertNotNull(configuration);
- Dictionary properties = new Hashtable<String, String>();
+ Dictionary<String, String> properties = new Hashtable<String, String>();
properties.put("dump.root.directory", "target/dumps/1");
properties.put("dump.exclusions.bleurgh", "heap");
@@ -128,7 +126,7 @@ public class DumpIntegrationTests {
Thread.sleep(2000);
- ServiceReference serviceReference = this.bundleContext.getServiceReference(DumpGenerator.class.getName());
+ ServiceReference<?> serviceReference = this.bundleContext.getServiceReference(DumpGenerator.class.getName());
DumpGenerator dumpGenerator = (DumpGenerator)this.bundleContext.getService(serviceReference);
dumpGenerator.generateDump("bleurgh");
@@ -142,8 +140,8 @@ public class DumpIntegrationTests {
}
- @SuppressWarnings("unchecked")
@Test
+ @SuppressWarnings("unchecked")
public void logDumpEnabled() throws IOException, InterruptedException {
Configuration configuration = getConfiguration("org.eclipse.virgo.medic");
assertNotNull(configuration);
@@ -167,9 +165,9 @@ public class DumpIntegrationTests {
assertNotNull(file.list());
assertEquals(1, file.list().length);
- assertDumpContributionsNumberOf(file.listFiles()[0], 4);
- assertDumpContributionsEssential(file.listFiles()[0], "summary.txt", "thread.txt", "log.log");
- assertDumpContributionsAllowable(file.listFiles()[0], "heap.out", "heap.err", "summary.txt", "thread.txt", "log.log");
+ assertDumpContributionsNumberOf(file.listFiles()[0], 3);
+ assertDumpContributionsEssential(file.listFiles()[0], "summary.txt", "thread.txt");
+ assertDumpContributionsAllowable(file.listFiles()[0], "heap.out", "heap.err", "summary.txt", "thread.txt");
}
private Configuration getConfiguration(String pid) throws IOException {

Back to the top