Skip to content

Commit

Permalink
remove asserts from documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
raynigon committed Jun 6, 2020
1 parent 70cbfb8 commit cf2bf3c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ public void restClientClusterHealth() throws IOException {
.build();

Response response = client.performRequest(new Request("GET", "/_cluster/health"));
// }}
assertThat(response.getStatusLine().getStatusCode(), is(200));
assertThat(EntityUtils.toString(response.getEntity()), containsString("cluster_name"));
// httpClientContainer {{
}
// }
}
Expand All @@ -133,7 +135,6 @@ public void transportClientClusterHealth() {
// transportClientContainer {
// Create the elasticsearch container.
try (ElasticsearchContainer container = new ElasticsearchContainer()) {

// Start the container. This step might take some time...
container.start();

Expand All @@ -145,7 +146,9 @@ public void transportClientClusterHealth() {
.addTransportAddress(transportAddress)) {
ClusterHealthResponse healths = transportClient.admin().cluster().prepareHealth().get();
String clusterName = healths.getClusterName();
// }}}
assertThat(clusterName, is(expectedClusterName));
// transportClientContainer {{{
}
}
// }
Expand Down

0 comments on commit cf2bf3c

Please sign in to comment.