Add ordinary unit test
This commit is contained in:
parent
dff04667db
commit
e71fb18fc8
1 changed files with 5 additions and 3 deletions
|
@ -6,7 +6,6 @@ import java.util.List;
|
|||
|
||||
import javax.transaction.Transactional;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -16,6 +15,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||
|
||||
import eu.profinit.education.flightlog.IntegrationTestConfig;
|
||||
import eu.profinit.education.flightlog.domain.entities.Flight;
|
||||
import eu.profinit.education.flightlog.domain.entities.Flight.Type;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = IntegrationTestConfig.class)
|
||||
|
@ -35,10 +35,12 @@ public class FlightRepositoryTest {
|
|||
|
||||
}
|
||||
|
||||
@Ignore("Test is not implemented")
|
||||
@Test
|
||||
public void shouldLoadGliderFlights() {
|
||||
// TODO tutorial-3.3: Implement a test that checks that there are 2 gliders in a DB
|
||||
assertEquals(
|
||||
"There should be 2 glider flights",
|
||||
2,
|
||||
testSubject.findAllByFlightType(Type.GLIDER).size());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue