Skip to content

Commit

Permalink
mapping related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lorthos committed Feb 17, 2014
1 parent 9bd6569 commit 4f0f481
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public void testWithoutParameters() throws IOException {
JestResult result = client.execute(getMapping);
assertNotNull(result);
String jsonResult = result.getJsonString();
for (String indexName : INDEX_NAMES) {
assertTrue("Get-mapping result should contain results for all indices when called without parameters.",
jsonResult.contains(indexName));
}
assertTrue("Get-mapping result should contain results for all indices when called without parameters.",
jsonResult.contains(INDEX_1_NAME));
assertFalse("Get-mapping result should not contain results for not customized index.",
jsonResult.contains(INDEX_2_NAME));
}

@Test
Expand All @@ -72,7 +72,7 @@ public void testWithSingleIndex() throws IOException {
JestResult result = client.execute(getMapping);
assertNotNull(result);
String jsonResult = result.getJsonString();
assertTrue("Get-mapping result should contain mapping for the added index name(s).",
assertFalse("Get-mapping result should not contain mapping for the unconfigured index.",
jsonResult.contains(INDEX_2_NAME));
assertFalse("Get-mapping result should not contain mapping for not added index name(s).",
jsonResult.contains(INDEX_1_NAME));
Expand All @@ -97,7 +97,7 @@ public void testWithMultipleIndices() throws IOException {
JsonObject resultJsonObject = result.getJsonObject();
assertTrue("Get-mapping result should contain mapping for the added index name(s).",
resultJsonObject.has(INDEX_1_NAME));
assertTrue("Get-mapping result should contain mapping for the added index name(s).",
assertFalse("Get-mapping result should not contain mapping for the unconfigured index",
resultJsonObject.has(INDEX_2_NAME));
}

Expand Down

0 comments on commit 4f0f481

Please sign in to comment.