Skip to content

Commit

Permalink
Issue jmprathab#257 clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
DDmit04 committed Mar 11, 2021
1 parent 62156ff commit 938b66f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.myhome.domain.AmenityBookingItem;
import com.myhome.repositories.AmenityBookingItemRepository;
import com.myhome.services.AmenityBookingService;
import com.myhome.services.springdatajpa.AmenityBookingSDJpaService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -22,6 +21,7 @@
public class AmenityBookingSDJpaServiceTest {

private static final String TEST_BOOKING_ID = "test-booking-id";

@Mock
private AmenityBookingItemRepository bookingItemRepository;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.myhome.controllers.mapper.AmenityApiMapper;
import com.myhome.domain.Amenity;
import com.myhome.domain.AmenityBookingItem;
import com.myhome.domain.Community;
import com.myhome.model.AmenityDto;
import com.myhome.repositories.AmenityBookingItemRepository;
Expand All @@ -32,7 +31,6 @@
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;
Expand All @@ -49,16 +47,15 @@
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoInteractions;
import static org.mockito.Mockito.verifyNoMoreInteractions;

class AmenitySDJpaServiceTest {

private static final String TEST_AMENITY_NAME = "test-amenity-name";
private static final BigDecimal TEST_AMENITY_PRICE = BigDecimal.valueOf(1);
private static final String TEST_BOOKING_ID = "test-booking-id";
private final String TEST_AMENITY_ID = "test-amenity-id";
private final String TEST_AMENITY_DESCRIPTION = "test-amenity-description";
private final String TEST_COMMUNITY_ID = "test-community-id";

@Mock
private AmenityRepository amenityRepository;
@Mock
Expand All @@ -69,8 +66,6 @@ class AmenitySDJpaServiceTest {
private AmenityApiMapper amenityApiMapper;
@Mock
private AmenityBookingService amenityBookingService;
@Mock
private AmenityBookingItemRepository bookingItemRepository;

@InjectMocks
private AmenitySDJpaService amenitySDJpaService;
Expand Down

0 comments on commit 938b66f

Please sign in to comment.