geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [geode] 12/15: GEODE-4876: Update DistributedTestRuleDistributedTest use of VM and NetworkUtil
Date Thu, 29 Mar 2018 20:22:08 GMT
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 b6b4ac2de7f48d3b45298c872bda6f9453c59409
Author: Kirk Lund <klund@apache.org>
AuthorDate: Mon Mar 26 17:37:51 2018 -0700

    GEODE-4876: Update DistributedTestRuleDistributedTest use of VM and NetworkUtil
    
    * rename DistributedTestRuleTest as DistributedTestRuleDistributedTest
---
 ...tedTestRuleTest.java => DistributedTestRuleDistributedTest.java} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/geode-core/src/test/java/org/apache/geode/test/dunit/rules/tests/DistributedTestRuleTest.java
b/geode-core/src/test/java/org/apache/geode/test/dunit/rules/tests/DistributedTestRuleDistributedTest.java
similarity index 89%
rename from geode-core/src/test/java/org/apache/geode/test/dunit/rules/tests/DistributedTestRuleTest.java
rename to geode-core/src/test/java/org/apache/geode/test/dunit/rules/tests/DistributedTestRuleDistributedTest.java
index be0b518..18ad269 100644
--- a/geode-core/src/test/java/org/apache/geode/test/dunit/rules/tests/DistributedTestRuleTest.java
+++ b/geode-core/src/test/java/org/apache/geode/test/dunit/rules/tests/DistributedTestRuleDistributedTest.java
@@ -14,24 +14,24 @@
  */
 package org.apache.geode.test.dunit.rules.tests;
 
+import static org.apache.geode.test.dunit.VM.getVMCount;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import org.junit.ClassRule;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
 
-import org.apache.geode.test.dunit.Host;
 import org.apache.geode.test.dunit.rules.DistributedTestRule;
 import org.apache.geode.test.junit.categories.DistributedTest;
 
 @Category(DistributedTest.class)
-public class DistributedTestRuleTest {
+public class DistributedTestRuleDistributedTest {
 
   @ClassRule
   public static DistributedTestRule distributedTestRule = new DistributedTestRule();
 
   @Test
   public void shouldHaveFourOrMoreDUnitVMsByDefault() throws Exception {
-    assertThat(Host.getHost(0).getVMCount()).isGreaterThanOrEqualTo(4);
+    assertThat(getVMCount()).isGreaterThanOrEqualTo(4);
   }
 }

-- 
To stop receiving notification emails like this one, please contact
klund@apache.org.

Mime
View raw message