diff --git a/GRAISSE/src/test/java/ca/ulaval/glo4002/GRAISSE/Booking/BookingTest.java b/GRAISSE/src/test/java/ca/ulaval/glo4002/GRAISSE/Booking/BookingTest.java index abdf17e..00ee0d3 100644 --- a/GRAISSE/src/test/java/ca/ulaval/glo4002/GRAISSE/Booking/BookingTest.java +++ b/GRAISSE/src/test/java/ca/ulaval/glo4002/GRAISSE/Booking/BookingTest.java @@ -1,6 +1,5 @@ package ca.ulaval.glo4002.GRAISSE.Booking; -import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; @@ -12,9 +11,6 @@ @RunWith(MockitoJUnitRunner.class) public class BookingTest { - private static final int BIGGER = 1; - private static final int SMALLER = -1; - private static final Booking.Priority PRIORITY_VALUE_OF_BOOKING = Booking.Priority.LOW; private static final Booking.Priority PRIORITY_VALUE_OF_BOOKING_BIGGER =Booking.Priority.HIGH; private static final Booking.Priority PRIORITY_VALUE_OF_BOOKING_SMALLER = Booking.Priority.VERY_LOW; @@ -73,15 +69,15 @@ public void withABiggerNumberOfSeatsVerifyNumberOfSeatsShouldReturnTrue() { } @Test - public void WithSmallerPriorityBoookingcomparePriorityToBookingShouldReturnAPossitiveNumber() { + public void WithSmallerPriorityBookingcomparePriorityToBookingShouldReturnAPositiveNumber() { int result = booking.comparePriorityToBooking(bookingWithSmallerPriority); - assertEquals(BIGGER, result); + assertTrue( result > 0); } @Test - public void WithBiggerNumberOfSeatsBoardroomcompareNumberOfSeatsToBoardroomShouldReturnAPossitiveNumber() { + public void WithBiggerPriorityBookingcomparePriorityToBookingShouldReturnANegativeNumber() { int result = booking.comparePriorityToBooking(bookingWithBiggerPriority); - assertEquals(SMALLER, result); + assertTrue( result < 0); } }