Add additional test case asserting that DEBUG Log statements are not logged.

Resolves gh-73.
This commit is contained in:
John Blum
2020-02-13 00:17:48 -08:00
parent ae616a4774
commit 729c02407c

View File

@@ -45,11 +45,16 @@ public class ApacheGeodeLoggingApplicationSmokeTests extends IntegrationTestsSup
@Test
public void springApplicationLogsContent() {
assertThat(log.getContent()).containsSequence("RUNNER RAN!");
assertThat(this.log.getContent()).containsSequence("RUNNER RAN!");
}
@Test
public void debugLogStatementNotLogged() {
assertThat(this.log.getContent()).doesNotContain("DEBUG TEST");
}
@Test
public void apacheGeodeLogsContent() {
assertThat(log.getContent()).containsSequence("Product-Name: Apache Geode");
assertThat(this.log.getContent()).containsSequence("Product-Name: Apache Geode");
}
}