File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
vertx-oracle-client/src/test/java/io/vertx/oracleclient/test/junit Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 12
12
13
13
import io .vertx .oracleclient .OracleConnectOptions ;
14
14
import org .junit .rules .ExternalResource ;
15
+ import org .testcontainers .containers .BindMode ;
15
16
import org .testcontainers .containers .GenericContainer ;
16
17
import org .testcontainers .containers .wait .strategy .Wait ;
17
18
@@ -36,7 +37,7 @@ public class OracleRule extends ExternalResource {
36
37
ORACLE_DB = new GenericContainer <>(image )
37
38
.withEnv ("ORACLE_PASSWORD" , PASSWORD )
38
39
.withExposedPorts (PORT )
39
- .withFileSystemBind ( "src/test/resources/ tck" , "/container-entrypoint-initdb.d" )
40
+ .withClasspathResourceMapping ( " tck/import.sql " , "/container-entrypoint-initdb.d/import.sql" , BindMode . READ_ONLY )
40
41
.withLogConsumer (of -> System .out .print ("[ORACLE] " + of .getUtf8String ()))
41
42
.waitingFor (
42
43
Wait .forLogMessage (".*DATABASE IS READY TO USE!.*\\ n" , 1 )
You can’t perform that action at this time.
0 commit comments