Skip to content

Commit

Permalink
Add test for GenericContainer::isRunning (testcontainers#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Prokopchik authored and Konstantin Prokopchik committed Jul 19, 2017
1 parent a5ebbb0 commit f9378fa
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ public static void setupContent() throws FileNotFoundException {
// assertTrue("The list contains an item that was put in (redis is working!)", testList2.contains("baz"));
// }

@Test
public void testIsRunning() {
GenericContainer container = new GenericContainer();
assertFalse("Container is not started and not running", container.isRunning());
container.start();
assertTrue("Container is started and running", container.isRunning());
}

@Test
public void simpleRabbitMqTest() throws IOException, TimeoutException {
ConnectionFactory factory = new ConnectionFactory();
Expand Down

0 comments on commit f9378fa

Please sign in to comment.