File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
core/src/test/java/org/testcontainers/containers/wait/internal Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 33import com .google .common .collect .ImmutableSet ;
44import org .junit .After ;
55import org .junit .Before ;
6+ import org .junit .Rule ;
67import org .junit .Test ;
78import org .junit .runner .RunWith ;
89import org .junit .runners .Parameterized ;
1617@ RunWith (Parameterized .class )
1718public class InternalCommandPortListeningCheckTest {
1819
19- @ Parameterized .Parameter
20- public String dockerfile ;
21-
2220 @ Parameterized .Parameters (name = "{index} - {0}" )
2321 public static Iterable <Object []> data () {
2422 return asList (
@@ -29,20 +27,14 @@ public static Iterable<Object[]> data() {
2927 });
3028 }
3129
30+ @ Rule
3231 public GenericContainer container ;
3332
34- @ Before
35- public void setUp () {
33+ public InternalCommandPortListeningCheckTest (String dockerfile ) {
3634 container = new GenericContainer (new ImageFromDockerfile ()
3735 .withFileFromClasspath ("Dockerfile" , dockerfile )
3836 .withFileFromClasspath ("nginx.conf" , "internal-port-check-dockerfile/nginx.conf" )
3937 );
40- container .start ();
41- }
42-
43- @ After
44- public void tearDown () {
45- container .stop ();
4638 }
4739
4840 @ Test
You can’t perform that action at this time.
0 commit comments