Skip to content

Commit

Permalink
MODINVSTOR-1262 add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-barannyk committed Nov 11, 2024
1 parent 3cd215a commit 1f8da1b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@ void shouldReturnTrueForUpdateIfNewServicePointIsValid() {
}

@Test
void shouldReturnTrueForCreateIfNewServicePointIsValid() {
void shouldReturnTrueForCreateAndDeleteIfNewServicePointIsValid() {
var servicepoint = new Servicepoint().withId(UUID.randomUUID().toString());
var createEventProcessor = new ServicePointSynchronizationCreateEventProcessor(
createEvent(servicepoint, TENANT));
var deleteEventProcessor = new ServicePointSynchronizationDeleteEventProcessor(
deleteEvent(servicepoint, TENANT));

assertTrue(createEventProcessor.validateEventEntity());
assertTrue(deleteEventProcessor.validateEventEntity());
}

@Test
Expand Down

0 comments on commit 1f8da1b

Please sign in to comment.