Guest User

Untitled

a guest
Jun 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. RunWith(SpringRunner.class)
  2. @SpringBootTest
  3. public class ConnectionLookupClientIT {
  4.  
  5. private static final String LAUSANNE = "Lausanne";
  6. private static final String ZURICH = "Zurich";
  7.  
  8. @Autowired
  9. private ConnectionLookupClient client;
  10.  
  11. @Test
  12. public void getConnections_shouldRetrieveConnections() {
  13. // given
  14. // ... nothing to setup
  15.  
  16. // when
  17. Connections connections = client.getConnections(LAUSANNE, ZURICH);
  18.  
  19. // then
  20. assertThat(connections).isNotNull();
  21. assertThat(connections.getConnections()).isNotEmpty();
  22. }
  23. }
Add Comment
Please, Sign In to add comment