-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cad8eec
commit 1a0a9ca
Showing
1 changed file
with
13 additions
and
2 deletions.
There are no files selected for viewing
15 changes: 13 additions & 2 deletions
15
ab2d-events-client/src/test/java/gov/cms/ab2d/eventclient/events/JobSummaryEventTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
|
||
} |