File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
modules/oracle-free/src/main/java/org/testcontainers/oracle Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 11package org .testcontainers .oracle ;
22
33import io .r2dbc .spi .ConnectionFactoryOptions ;
4- import lombok .RequiredArgsConstructor ;
5- import lombok .experimental .Delegate ;
6- import org .testcontainers .lifecycle .Startable ;
74import org .testcontainers .r2dbc .R2DBCDatabaseContainer ;
85
9- @ RequiredArgsConstructor
106public class OracleR2DBCDatabaseContainer implements R2DBCDatabaseContainer {
117
12- @ Delegate (types = Startable .class )
138 private final OracleContainer container ;
149
10+ public OracleR2DBCDatabaseContainer (OracleContainer container ) {
11+ this .container = container ;
12+ }
13+
1514 public static ConnectionFactoryOptions getOptions (OracleContainer container ) {
1615 ConnectionFactoryOptions options = ConnectionFactoryOptions
1716 .builder ()
@@ -32,4 +31,14 @@ public ConnectionFactoryOptions configure(ConnectionFactoryOptions options) {
3231 .option (ConnectionFactoryOptions .PASSWORD , container .getPassword ())
3332 .build ();
3433 }
34+
35+ @ Override
36+ public void start () {
37+ this .container .start ();
38+ }
39+
40+ @ Override
41+ public void stop () {
42+ this .container .stop ();
43+ }
3544}
You can’t perform that action at this time.
0 commit comments