From 729c02407cc0d9f8b71dc1640174883049a136fe Mon Sep 17 00:00:00 2001 From: John Blum Date: Thu, 13 Feb 2020 00:17:48 -0800 Subject: [PATCH] Add additional test case asserting that DEBUG Log statements are not logged. Resolves gh-73. --- .../logging/ApacheGeodeLoggingApplicationSmokeTests.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/spring-geode-tests/smoke-tests/logging/src/test/java/example/app/geode/logging/ApacheGeodeLoggingApplicationSmokeTests.java b/spring-geode-tests/smoke-tests/logging/src/test/java/example/app/geode/logging/ApacheGeodeLoggingApplicationSmokeTests.java index 1369cbe5..f082cabc 100644 --- a/spring-geode-tests/smoke-tests/logging/src/test/java/example/app/geode/logging/ApacheGeodeLoggingApplicationSmokeTests.java +++ b/spring-geode-tests/smoke-tests/logging/src/test/java/example/app/geode/logging/ApacheGeodeLoggingApplicationSmokeTests.java @@ -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"); } }