Skip to content

Commit

Permalink
added IT and unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mynecker committed Nov 12, 2024
1 parent c1f6f97 commit 2874ce8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,10 @@ void testGetValue() {
@Test
void testUnsupportedEntityType() {
try {
SempEntityType entityType = SempEntityType.fromValue("unsupported");
SempEntityType.fromValue("unsupported");
} catch (IllegalArgumentException e) {
assert e.getMessage().equals("Unsupported entity type: unsupported");
}
}

@Test
void testFromValueNull() {
try {
SempEntityType entityType = SempEntityType.fromValue(null);
} catch (IllegalArgumentException e) {
assert e.getMessage().equals("Unsupported entity type: null");
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;


public class EmRestartSimulatingPersistentMessageHandlerObserverTest {

@Test
Expand Down

0 comments on commit 2874ce8

Please sign in to comment.