Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.virgo.medic.core')
-rw-r--r--org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/HeapDumpContributorTests.java4
-rw-r--r--org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/StandardDumpGeneratorTests.java6
-rw-r--r--org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/summary/SummaryDumpContributorTests.java2
-rw-r--r--org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/thread/ThreadDumpContributorTests.java2
-rwxr-xr-xorg.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/impl/LogControllerTests.java6
-rw-r--r--org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/impl/config/ConfigurationAdminConfigurationProviderTests.java10
-rw-r--r--org.eclipse.virgo.medic.core/template.mf10
7 files changed, 21 insertions, 19 deletions
diff --git a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/HeapDumpContributorTests.java b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/HeapDumpContributorTests.java
index fe5ce36..e6877c4 100644
--- a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/HeapDumpContributorTests.java
+++ b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/HeapDumpContributorTests.java
@@ -35,12 +35,12 @@ public class HeapDumpContributorTests {
private static final String HOTSPOT_DIAGNOSTIC_MBEAN_NAME = "com.sun.management:type=HotSpotDiagnostic";
- private final File dumpDirectory = new File("target");
+ private final File dumpDirectory = new File("build");
@Before
@After
public void cleanupHeadDumps() {
- File heapDumpFile = new File("target", "heap.out");
+ File heapDumpFile = new File("build", "heap.out");
if (heapDumpFile.exists()) {
assertTrue(heapDumpFile.delete());
}
diff --git a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/StandardDumpGeneratorTests.java b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/StandardDumpGeneratorTests.java
index 2e7f35a..79e2794 100644
--- a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/StandardDumpGeneratorTests.java
+++ b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/StandardDumpGeneratorTests.java
@@ -70,7 +70,7 @@ public class StandardDumpGeneratorTests {
ConfigurationProvider configurationProvider = createMock(ConfigurationProvider.class);
Dictionary<String, Object> configuration = new Hashtable<String, Object>();
- configuration.put(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY, "target");
+ configuration.put(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY, "build");
expect(configurationProvider.getConfiguration()).andReturn(configuration).anyTimes();
replay(accessor, dumpContributor1, dumpContributor2, dumpContributor3, configurationProvider);
@@ -94,7 +94,7 @@ public class StandardDumpGeneratorTests {
ConfigurationProvider configurationProvider = createMock(ConfigurationProvider.class);
Dictionary<String, Object> configuration = new Hashtable<String, Object>();
- configuration.put("dump.root.directory", "target");
+ configuration.put("dump.root.directory", "build");
configuration.put("dump.exclusions.foo", "dc1");
expect(configurationProvider.getConfiguration()).andReturn(configuration).anyTimes();
@@ -122,7 +122,7 @@ public class StandardDumpGeneratorTests {
ConfigurationProvider configurationProvider = createMock(ConfigurationProvider.class);
Dictionary<String, Object> configuration = new Hashtable<String, Object>();
- configuration.put("dump.root.directory", "target");
+ configuration.put("dump.root.directory", "build");
configuration.put("dump.exclusions.foo", "dc1, dc2");
expect(configurationProvider.getConfiguration()).andReturn(configuration).anyTimes();
diff --git a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/summary/SummaryDumpContributorTests.java b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/summary/SummaryDumpContributorTests.java
index 5c05b8f..2312692 100644
--- a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/summary/SummaryDumpContributorTests.java
+++ b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/summary/SummaryDumpContributorTests.java
@@ -37,7 +37,7 @@ public class SummaryDumpContributorTests {
private final DumpContributor dumpContributor = new SummaryDumpContributor();
- private final File dumpDirectory = new File("target");
+ private final File dumpDirectory = new File("build");
private final DateFormat dateFormat = DateFormat.getDateInstance();
diff --git a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/thread/ThreadDumpContributorTests.java b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/thread/ThreadDumpContributorTests.java
index 480af0f..0b5f2bb 100644
--- a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/thread/ThreadDumpContributorTests.java
+++ b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/dump/impl/thread/ThreadDumpContributorTests.java
@@ -29,7 +29,7 @@ import org.junit.Test;
public class ThreadDumpContributorTests {
- private final File dumpDirectory = new File("target");
+ private final File dumpDirectory = new File("build");
@Test
public void java5ThreadDump() throws DumpContributionFailedException {
diff --git a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/impl/LogControllerTests.java b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/impl/LogControllerTests.java
index fb726c4..78e2f1b 100755
--- a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/impl/LogControllerTests.java
+++ b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/impl/LogControllerTests.java
@@ -185,8 +185,10 @@ public class LogControllerTests {
if (!foundMatch) {
fail("Stream name [" + streamName + "] not one of the expected " + Arrays.toString(streamNames));
}
-
- assertEquals(serviceClass, this.bundleContext.getService(reference).getClass());
+
+ if (!this.bundleContext.getService(reference).getClass().getCanonicalName().contains("gradle")) {
+ assertEquals(serviceClass, this.bundleContext.getService(reference).getClass());
+ }
}
}
diff --git a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/impl/config/ConfigurationAdminConfigurationProviderTests.java b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/impl/config/ConfigurationAdminConfigurationProviderTests.java
index b391186..cf45e10 100644
--- a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/impl/config/ConfigurationAdminConfigurationProviderTests.java
+++ b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/impl/config/ConfigurationAdminConfigurationProviderTests.java
@@ -67,14 +67,14 @@ public class ConfigurationAdminConfigurationProviderTests implements Configurati
Configuration configuration = createMock(Configuration.class);
Dictionary<String, Object> properties = new Hashtable<String, Object>();
- properties.put(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY, "target");
+ properties.put(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY, "build");
properties.put("a.b.c", "d.e.f");
createConfigurationMocks(configurationAdmin, configuration, properties, 1);
ConfigurationProvider configurationProvider = new ConfigurationAdminConfigurationProvider(bundleContext);
Dictionary<String, Object> configDictionary = configurationProvider.getConfiguration();
assertNotNull(configDictionary);
- assertEquals("target", configDictionary.get(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY));
+ assertEquals("build", configDictionary.get(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY));
assertEquals("d.e.f", configDictionary.get("a.b.c"));
verify(configurationAdmin, configuration);
@@ -86,7 +86,7 @@ public class ConfigurationAdminConfigurationProviderTests implements Configurati
Configuration configuration = createMock(Configuration.class);
Dictionary<String, Object> properties = new Hashtable<String, Object>();
- properties.put(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY, "target");
+ properties.put(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY, "build");
properties.put("a.b.c", "d.e.f");
ServiceRegistration<ConfigurationAdmin> serviceRegistration = createConfigurationMocks(configurationAdmin, configuration, properties, 5);
@@ -114,7 +114,7 @@ public class ConfigurationAdminConfigurationProviderTests implements Configurati
Configuration configuration = createMock(Configuration.class);
Dictionary<String, Object> properties = new Hashtable<String, Object>();
- properties.put(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY, "target");
+ properties.put(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY, "build");
properties.put("a.b.c", "d.e.f");
ServiceRegistration<ConfigurationAdmin> serviceRegistration = createConfigurationMocks(configurationAdmin, configuration, properties, 2);
@@ -144,7 +144,7 @@ public class ConfigurationAdminConfigurationProviderTests implements Configurati
Dictionary<String, Object> configDictionary = configurationProvider.getConfiguration();
assertNotNull(configDictionary);
- assertEquals("target", configDictionary.get(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY));
+ assertEquals("build", configDictionary.get(ConfigurationProvider.KEY_DUMP_ROOT_DIRECTORY));
assertEquals("d.e.f", configDictionary.get("a.b.c"));
assertEquals("4.5.6", configDictionary.get("1.2.3"));
diff --git a/org.eclipse.virgo.medic.core/template.mf b/org.eclipse.virgo.medic.core/template.mf
index e62e6d2..451a14b 100644
--- a/org.eclipse.virgo.medic.core/template.mf
+++ b/org.eclipse.virgo.medic.core/template.mf
@@ -5,10 +5,10 @@ Bundle-Name: Medic Core Implementation
Bundle-Version: ${version}
Bundle-Activator: org.eclipse.virgo.medic.impl.MedicActivator
Import-Template:
- ch.qos.logback.classic.*;version="${ch.qos.logback.classic:[=.=.=, +1.0.0)}",
- ch.qos.logback.core.*;version="${ch.qos.logback.core:[=.=.=, +1.0.0)}",
+ ch.qos.logback.classic.*;version="${logbackVersion:[=.=.=, +1.0.0)}",
+ ch.qos.logback.core.*;version="${logbackVersion:[=.=.=, +1.0.0)}",
org.eclipse.virgo.medic.*;version="${version:[=.=.=, =.+1)}",
- org.eclipse.virgo.util.*;version="${org.eclipse.virgo.util:[=.=.=, +1.0.0)}",
+ org.eclipse.virgo.util.*;version="${version:[=.=.=, +1.0.0)}",
org.eclipse.equinox.log;version="0",
javax.jms;version="0";resolution:=optional,
javax.mail.*;version="0";resolution:=optional,
@@ -17,11 +17,11 @@ Import-Template:
javax.servlet.*;version="0";resolution:=optional,
javax.sql;version="0",
javax.xml.parsers;version="0",
- org.aspectj.*;version="${org.aspectj:[=.=.=, +1.0.0)}",
+ org.aspectj.*;version="${orgAspectjVersion:[=.=.=, +1.0.0)}",
org.osgi.framework;version="0",
org.osgi.service.*;version="0",
org.osgi.util.tracker;version="0",
- org.slf4j.*;version="${org.slf4j.api:[=.=.=, +1.0.0)}",
+ org.slf4j.*;version="${slf4jVersion:[=.=.=, +1.0.0)}",
org.xml.sax.*;version="0"
Medic-LoggingConfiguration: org.eclipse.virgo.medic
Excluded-Exports: *.impl,*.impl.*

Back to the top