Guest User

Untitled

a guest
Jun 23rd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. @RunWith(SpringRunner.class)
  2. @SpringBootTest
  3. @Sql(scripts = "/setup_data_integration_test.sql", executionPhase = BEFORE_TEST_METHOD)
  4. @Sql(scripts = "/clean_data_integration_test.sql", executionPhase = AFTER_TEST_METHOD)
  5. public class JourneyRepositoryIT {
  6.  
  7. @Autowired
  8. private JourneyRepository repository;
  9.  
  10. @Test
  11. public void findAll_shouldFindSomething_Maybe() {
  12. // given
  13. // ... nothing to setup
  14.  
  15. // when
  16. List<Journey> journeys = repository.findAll();
  17.  
  18. // then
  19. assertThat(journeys).isNotNull();
  20. assertThat(journeys.size()).isGreaterThanOrEqualTo(1);
  21. }
  22. }
Add Comment
Please, Sign In to add comment