Commit 35ee51ff authored by Khalid Ali's avatar Khalid Ali
Browse files

DeleteById service test added

parent 2f5aea4b
......@@ -77,4 +77,11 @@ public class ListingEntityServiceIntegrationTest {
assertThat(listings.size()).isEqualTo(3);
}
@Test
public void whenDeleteByValidId_thenListingShouldBeRemoved() {
listingService.deleteListing(9182381L);
Mockito.verify(EmployeeServiceImplTestContextConfiguration.listingRepository, Mockito.times(1)).deleteById(9182381L);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment