Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Powell2010-12-07 06:22:50 -0500
committerSteve Powell2010-12-07 06:22:50 -0500
commitc4f5403917cf956c7cdb4300c0ea22f84b07228a (patch)
treea2dec5f92609dda0294b6f0e691acb9008ff993b
parent827ab8125e7ce3db16d4aea8cfef5239b9e4dc30 (diff)
downloadorg.eclipse.virgo.medic-c4f5403917cf956c7cdb4300c0ea22f84b07228a.tar.gz
org.eclipse.virgo.medic-c4f5403917cf956c7cdb4300c0ea22f84b07228a.tar.xz
org.eclipse.virgo.medic-c4f5403917cf956c7cdb4300c0ea22f84b07228a.zip
Re-built manifest; also removed redundant casts in tests.
-rw-r--r--org.eclipse.virgo.medic.integrationtest/src/test/java/org/eclipse/virgo/medic/eventlog/test/EventLogIntegrationTests.java6
-rw-r--r--org.eclipse.virgo.medic.integrationtest/src/test/resources/META-INF/MANIFEST.MF1
2 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.virgo.medic.integrationtest/src/test/java/org/eclipse/virgo/medic/eventlog/test/EventLogIntegrationTests.java b/org.eclipse.virgo.medic.integrationtest/src/test/java/org/eclipse/virgo/medic/eventlog/test/EventLogIntegrationTests.java
index 9985a66..7cf4ba6 100644
--- a/org.eclipse.virgo.medic.integrationtest/src/test/java/org/eclipse/virgo/medic/eventlog/test/EventLogIntegrationTests.java
+++ b/org.eclipse.virgo.medic.integrationtest/src/test/java/org/eclipse/virgo/medic/eventlog/test/EventLogIntegrationTests.java
@@ -68,7 +68,7 @@ public class EventLogIntegrationTests {
public void eventLoggingWithMessageFromCurrentBundle() {
ServiceReference<EventLogger> serviceReference = this.bundleContext.getServiceReference(EventLogger.class);
assertNotNull(serviceReference);
- EventLogger eventLogger = (EventLogger)this.bundleContext.getService(serviceReference);
+ EventLogger eventLogger = this.bundleContext.getService(serviceReference);
eventLogger.log("1234", Level.WARNING, "orange", "lemon");
List<LoggingEvent> loggingEvent = StubAppender.getAndResetLoggingEvents("default-stub");
@@ -85,7 +85,7 @@ public class EventLogIntegrationTests {
public void eventLoggingWithMessageFromFragment() throws Exception {
ServiceReference<EventLoggerFactory> serviceReference = this.bundleContext.getServiceReference(EventLoggerFactory.class);
assertNotNull(serviceReference);
- EventLoggerFactory eventLoggerFactory = (EventLoggerFactory)this.bundleContext.getService(serviceReference);
+ EventLoggerFactory eventLoggerFactory = this.bundleContext.getService(serviceReference);
EventLogger eventLogger = eventLoggerFactory.createEventLogger(this.messageBundle);
eventLogger.log("3456", Level.WARNING, "oak", "sycamore");
@@ -102,7 +102,7 @@ public class EventLogIntegrationTests {
public void eventLoggingWithMessageFromSpecificBundle() throws Exception {
ServiceReference<EventLoggerFactory> serviceReference = this.bundleContext.getServiceReference(EventLoggerFactory.class);
assertNotNull(serviceReference);
- EventLoggerFactory eventLoggerFactory = (EventLoggerFactory)this.bundleContext.getService(serviceReference);
+ EventLoggerFactory eventLoggerFactory = this.bundleContext.getService(serviceReference);
EventLogger eventLogger = eventLoggerFactory.createEventLogger(this.messageBundle);
eventLogger.log("2345", Level.WARNING, "potato", "cauliflower");
diff --git a/org.eclipse.virgo.medic.integrationtest/src/test/resources/META-INF/MANIFEST.MF b/org.eclipse.virgo.medic.integrationtest/src/test/resources/META-INF/MANIFEST.MF
index 950f1b6..171d95e 100644
--- a/org.eclipse.virgo.medic.integrationtest/src/test/resources/META-INF/MANIFEST.MF
+++ b/org.eclipse.virgo.medic.integrationtest/src/test/resources/META-INF/MANIFEST.MF
@@ -10,6 +10,7 @@ Import-Package: ch.qos.logback.classic.spi,
org.eclipse.virgo.medic.dump;version="[2.2.0,2.3)",
org.eclipse.virgo.medic.eventlog;version="[2.2.0,2.3)",
org.eclipse.virgo.medic.log;version="[2.2.0,2.3)",
+ org.eclipse.virgo.medic.log.appender;version=0,
org.eclipse.virgo.test.framework;version=0,
org.junit;version=0,
org.junit.runner,

Back to the top