geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinmeil...@apache.org
Subject [geode] branch develop updated: GEODE-5824: DestroyRegionCommandDUnitTest tests failed in java 10 (#2566)
Date Thu, 04 Oct 2018 20:46:43 GMT
This is an automated email from the ASF dual-hosted git repository.

jinmeiliao pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 89f7a62  GEODE-5824: DestroyRegionCommandDUnitTest tests failed in java 10 (#2566)
89f7a62 is described below

commit 89f7a6246c594b3a4158f8d46ded009a895aa929
Author: jinmeiliao <jiliao@pivotal.io>
AuthorDate: Thu Oct 4 13:45:41 2018 -0700

    GEODE-5824: DestroyRegionCommandDUnitTest tests failed in java 10 (#2566)
    
    Co-authored-by: Patrick Rhomberg <prhomberg@pivotal.io>
---
 .../cli/commands/DestroyRegionCommandDUnitTest.java         | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/geode-core/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/DestroyRegionCommandDUnitTest.java
b/geode-core/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/DestroyRegionCommandDUnitTest.java
index 62a486e..0849ba3 100644
--- a/geode-core/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/DestroyRegionCommandDUnitTest.java
+++ b/geode-core/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/DestroyRegionCommandDUnitTest.java
@@ -115,14 +115,15 @@ public class DestroyRegionCommandDUnitTest {
       InternalConfigurationPersistenceService service =
           ClusterStartupRule.getLocator().getConfigurationPersistenceService();
       Configuration group1Config = service.getConfiguration("group1");
-      assertThat(group1Config.getCacheXmlContent()).contains("<region name=\"region1\">"
-          + System.getProperty("line.separator")
-          + "    <region-attributes data-policy=\"empty\" scope=\"distributed-ack\"/>");
+      assertThat(group1Config.getCacheXmlContent())
+          .containsOnlyOnce("<region name=\"region1\">")
+          .containsOnlyOnce("<region-attributes data-policy=\"empty\" scope=\"distributed-ack\"/>");
 
       Configuration clusterConfig = service.getConfiguration("group2");
-      assertThat(clusterConfig.getCacheXmlContent()).contains("<region name=\"region1\">"
-          + System.getProperty("line.separator")
-          + "    <region-attributes data-policy=\"replicate\" scope=\"distributed-ack\"/>");
+      assertThat(clusterConfig.getCacheXmlContent())
+          .containsOnlyOnce("<region name=\"region1\">")
+          .containsOnlyOnce(
+              "<region-attributes data-policy=\"replicate\" scope=\"distributed-ack\"/>");
     });
 
     gfsh.executeAndAssertThat("destroy region --name=region1").statusIsSuccess()


Mime
View raw message