Skip to content

Commit

Permalink
Issue jmprathab#257 rename test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
DDmit04 committed Mar 12, 2021
1 parent 1a33d75 commit 0b858a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private void init() {
}

@Test
void deleteBookingItem() {
void shouldDeleteBookingItem() {
// given
AmenityBookingItem testBookingItem = getTestBookingItem();

Expand All @@ -51,7 +51,7 @@ void deleteBookingItem() {
}

@Test
void deleteBookingNotExists() {
void shouldNotDeleteBookingItemIfNotExists() {
// given
given(bookingItemRepository.findByAmenityBookingItemId(TEST_BOOKING_ID))
.willReturn(Optional.empty());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ void removeHouseFromCommunityByHouseIdHouseNotInCommunity() {
}

@Test
void listAllAmenities() {
void shouldListAllAmenities() {
// given
Set<Amenity> testAmenities = TestUtils.AmenityHelpers.getTestAmenities(TEST_AMENITIES_COUNT);
Community testCommunity = TestUtils.CommunityHelpers.getTestCommunity();
Expand All @@ -586,7 +586,7 @@ void listAllAmenities() {
}

@Test
void listAllAmenitiesNotExists() {
void shouldReturnZeroResultsIfNoAmenitiesPresent() {
// given
given(communityRepository.findByCommunityIdWithAmenities(TEST_COMMUNITY_ID))
.willReturn(Optional.empty());
Expand Down

0 comments on commit 0b858a7

Please sign in to comment.