You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
547 B

package hs.fulda.de.ci.exam.project;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.fail;
@RunWith(MockitoJUnitRunner.class)
public class AirlineTest {
@Test
void testConstructorSetsNameParameterCorrectly(){
Airline airline = new Airline("Pegasus", "1234");
assertThat(airline.getName()).describedAs("name of airline").isEqualTo("Pegasus");
}
}