-
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
1a0a9ca
commit 723e445
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
19 changes: 18 additions & 1 deletion
19
ab2d-events-client/src/test/java/gov/cms/ab2d/eventclient/events/ReloadEventTest.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,29 @@ | ||
package gov.cms.ab2d.eventclient.events; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
class ReloadEventTest { | ||
|
||
ReloadEvent reloadEvent; | ||
|
||
@Test | ||
void test() { | ||
void testConstructor() { | ||
assertDoesNotThrow(() -> { | ||
new ReloadEvent(null, null, null, 0); | ||
new ReloadEvent("CMS", ReloadEvent.FileType.OPT_OUT, "fileName", 99); | ||
}); | ||
} | ||
|
||
@Test | ||
void testAsMessage() { | ||
reloadEvent = new ReloadEvent(); | ||
reloadEvent.setJobId("1234"); | ||
reloadEvent.setFileType(ReloadEvent.FileType.OPT_OUT); | ||
reloadEvent.setFileName("fileName"); | ||
assertEquals("(1234) OPT_OUT fileName", reloadEvent.asMessage()); | ||
} | ||
|
||
} |