Skip to content

Commit

Permalink
ReloadEventTest
Browse files Browse the repository at this point in the history
  • Loading branch information
coilysiren committed Jun 24, 2024
1 parent 1a0a9ca commit 723e445
Showing 1 changed file with 18 additions and 1 deletion.
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());
}

}

0 comments on commit 723e445

Please sign in to comment.