@Test public void testShouldOutputVerboseRecordRepresentation() { encoder.setStyle(FormatterStyle.VERBOSE); executeEvents(); verify(receiver).process(VERBOSE_RECORD); }
@Test public void testShouldOutputMultilineRecordRepresentation() { encoder.setStyle(FormatterStyle.MULTILINE); executeEvents(); verify(receiver).process(MULTILINE_RECORD); }
@Test public void testShouldOutputConciseRecordRepresentation() { encoder.setStyle(FormatterStyle.CONCISE); executeEvents(); verify(receiver).process(CONCISE_RECORD); }
@Test public void testShouldIgnoreIncompleteRecord() { encoder.setStyle(FormatterStyle.CONCISE); encoder.startRecord("incomplete"); encoder.literal("lit", "value"); encoder.startEntity("entity"); executeEvents(); verify(receiver).process(CONCISE_RECORD); verifyNoMoreInteractions(receiver); }