Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Waibel2015-04-03 05:33:53 -0400
committerFlorian Waibel2015-04-03 05:33:53 -0400
commitcab26bfe5294d66617daacf0c26edcb9455960aa (patch)
tree6c6071cf40f224f7c633c667f4032b1777ac0e5e
parentae985cd73dda2621c618e2b0bb728f7cc86db5ed (diff)
downloadorg.eclipse.virgo.medic-cab26bfe5294d66617daacf0c26edcb9455960aa.tar.gz
org.eclipse.virgo.medic-cab26bfe5294d66617daacf0c26edcb9455960aa.tar.xz
org.eclipse.virgo.medic-cab26bfe5294d66617daacf0c26edcb9455960aa.zip
463462 - Changes test output folder from Ant "target" to Gradle "build"
-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
-rw-r--r--org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/impl/config/ConfigurationAdminConfigurationProviderTests.java10
5 files changed, 12 insertions, 12 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/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"));

Back to the top