Skip to content

Commit

Permalink
added test to increase coverage on GelfEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
fupgang committed Mar 12, 2024
1 parent 3305ba1 commit 8a3ac4f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/java/de/siegmar/logbackgelf/GelfEncoderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -482,4 +482,12 @@ void addFieldMapper() {
assertThat(encoder.getFieldMappers()).containsExactly(fieldMapper);
}

@Test
void hasDefaultPatternLayout() {
encoder.start();

assertThat(encoder.getFullMessageLayout()).isNotNull();
assertThat(encoder.getShortMessageLayout()).isNotNull();
}

}

0 comments on commit 8a3ac4f

Please sign in to comment.