Skip to content

Commit

Permalink
Ajout des enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Trylz committed Mar 10, 2015
1 parent 00d41cb commit 75685e8
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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;
Expand Down Expand Up @@ -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);
}

}

0 comments on commit 75685e8

Please sign in to comment.