Skip to content

Commit

Permalink
JobSummaryEventTest
Browse files Browse the repository at this point in the history
  • Loading branch information
coilysiren committed Jun 24, 2024
1 parent cad8eec commit 1a0a9ca
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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());
}

}

0 comments on commit 1a0a9ca

Please sign in to comment.