Commit c9a04037 authored by 9731044's avatar 9731044

Upload New File

parent 46d78ba4
package flight.manager;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
class CustomerTest {
static Customer customer;
@BeforeAll
public static void createCustomer() {
customer = new Customer("Taghi","Tehrani","AB123");
}
@Test
void testGetName() {
assertNotNull(customer.getName());
assertEquals("Taghi", customer.getName());
}
@Test
void testGetFamilyName() {
assertNotNull(customer.getFamilyName());
assertEquals("Tehrani",customer.getFamilyName());
}
@Test
void testGetID() {
assertNotNull(customer.getID());
assertEquals("AB123", customer.getID());
}
@Test
void testGetReservedTickets() {
assertNotNull(customer.getReservedTickets());
}
}
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