Commit ce697007 authored by 9731044's avatar 9731044

Upload New File

parent b021b518
package flight.manager;
import static org.junit.Assert.assertNotNull;
import static org.junit.jupiter.api.Assertions.fail;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
class SeatTest {
static Seat seat;
static Customer user;
@BeforeAll
public static void testSeat() {
seat = new Seat("10C","Economy");
user = new Customer ("Taghi","Taheri","CD456");
seat.setUser(user);
}
@Test
void testGetSeatNo() {
assertNotNull(seat.getSeatNo());
}
@Test
void testGetUser() {
assertNotNull(seat.getUser());
}
}
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