diff --git a/ab2d-events-client/src/test/java/gov/cms/ab2d/eventclient/events/JobSummaryEventTest.java b/ab2d-events-client/src/test/java/gov/cms/ab2d/eventclient/events/JobSummaryEventTest.java index 73206a7..d90963f 100644 --- a/ab2d-events-client/src/test/java/gov/cms/ab2d/eventclient/events/JobSummaryEventTest.java +++ b/ab2d-events-client/src/test/java/gov/cms/ab2d/eventclient/events/JobSummaryEventTest.java @@ -1,12 +1,23 @@ package gov.cms.ab2d.eventclient.events; +import static org.junit.Assert.assertEquals; + +import java.time.OffsetDateTime; + import org.junit.jupiter.api.Test; class JobSummaryEventTest { - @Test - void test() { + JobSummaryEvent jobSummaryEvent; + OffsetDateTime now = OffsetDateTime.now(); + @Test + void testAsMessage() { + jobSummaryEvent = new JobSummaryEvent(); + jobSummaryEvent.setJobId("1234"); + jobSummaryEvent.setSubmittedTime(now); + jobSummaryEvent.setSuccessfullySearched(99); + assertEquals(String.format("(1234) submitted at %s successfully searched 99", now.toString()), jobSummaryEvent.asMessage()); } }