You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2018/03/29 20:22:02 UTC
[geode] 06/15: GEODE-4876: Update
PRCustomPartitioningDistributedTest use of VM and NetworkUtil
This is an automated email from the ASF dual-hosted git repository.
klund pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
commit cb6cd2d295cb007615d479df9ab02211f72c3304
Author: Kirk Lund <kl...@apache.org>
AuthorDate: Mon Mar 26 17:31:15 2018 -0700
GEODE-4876: Update PRCustomPartitioningDistributedTest use of VM and NetworkUtil
* rename PRCustomPartitioningDUnitTest as PRCustomPartitioningDistributedTest
---
.../geode/internal/cache/MonthBasedPartitionResolver.java | 2 +-
...nitTest.java => PRCustomPartitioningDistributedTest.java} | 12 ++++++------
.../org/apache/geode/internal/cache/SerializableMonth.java | 2 +-
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/geode-core/src/test/java/org/apache/geode/internal/cache/MonthBasedPartitionResolver.java b/geode-core/src/test/java/org/apache/geode/internal/cache/MonthBasedPartitionResolver.java
index f083ef0..3949938 100644
--- a/geode-core/src/test/java/org/apache/geode/internal/cache/MonthBasedPartitionResolver.java
+++ b/geode-core/src/test/java/org/apache/geode/internal/cache/MonthBasedPartitionResolver.java
@@ -28,7 +28,7 @@ import org.apache.geode.internal.cache.xmlcache.Declarable2;
* partitioning.
*
* <p>
- * Extracted from {@link PRCustomPartitioningDUnitTest}.
+ * Extracted from {@link PRCustomPartitioningDistributedTest}.
*/
class MonthBasedPartitionResolver implements PartitionResolver, Declarable2 {
diff --git a/geode-core/src/test/java/org/apache/geode/internal/cache/PRCustomPartitioningDUnitTest.java b/geode-core/src/test/java/org/apache/geode/internal/cache/PRCustomPartitioningDistributedTest.java
similarity index 96%
rename from geode-core/src/test/java/org/apache/geode/internal/cache/PRCustomPartitioningDUnitTest.java
rename to geode-core/src/test/java/org/apache/geode/internal/cache/PRCustomPartitioningDistributedTest.java
index 4cd5595..70249a1 100755
--- a/geode-core/src/test/java/org/apache/geode/internal/cache/PRCustomPartitioningDUnitTest.java
+++ b/geode-core/src/test/java/org/apache/geode/internal/cache/PRCustomPartitioningDistributedTest.java
@@ -14,7 +14,7 @@
*/
package org.apache.geode.internal.cache;
-import static org.apache.geode.test.dunit.Host.getHost;
+import static org.apache.geode.test.dunit.VM.getVM;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.Serializable;
@@ -44,7 +44,7 @@ import org.apache.geode.test.junit.categories.DistributedTest;
@Category(DistributedTest.class)
@SuppressWarnings("serial")
-public class PRCustomPartitioningDUnitTest implements Serializable {
+public class PRCustomPartitioningDistributedTest implements Serializable {
private static final int TOTAL_NUM_BUCKETS = 7;
@@ -68,10 +68,10 @@ public class PRCustomPartitioningDUnitTest implements Serializable {
@Before
public void setUp() {
- datastoreVM0 = getHost(0).getVM(0);
- datastoreVM1 = getHost(0).getVM(1);
- datastoreVM2 = getHost(0).getVM(2);
- accessorVM3 = getHost(0).getVM(3);
+ datastoreVM0 = getVM(0);
+ datastoreVM1 = getVM(1);
+ datastoreVM2 = getVM(2);
+ accessorVM3 = getVM(3);
regionName = "PR1";
diff --git a/geode-core/src/test/java/org/apache/geode/internal/cache/SerializableMonth.java b/geode-core/src/test/java/org/apache/geode/internal/cache/SerializableMonth.java
index 638c521..2670593 100644
--- a/geode-core/src/test/java/org/apache/geode/internal/cache/SerializableMonth.java
+++ b/geode-core/src/test/java/org/apache/geode/internal/cache/SerializableMonth.java
@@ -21,7 +21,7 @@ import java.io.IOException;
import org.apache.geode.DataSerializable;
/**
- * Extracted from {@link PRCustomPartitioningDUnitTest}.
+ * Extracted from {@link PRCustomPartitioningDistributedTest}.
*/
@SuppressWarnings("serial")
class SerializableMonth implements DataSerializable {
--
To stop receiving notification emails like this one, please contact
klund@apache.org.