File tree Expand file tree Collapse file tree 1 file changed +26
-4
lines changed
modules/oracle-free/src/main/java/org/testcontainers/oracle Expand file tree Collapse file tree 1 file changed +26
-4
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 ;
64import org .testcontainers .lifecycle .Startable ;
75import org .testcontainers .r2dbc .R2DBCDatabaseContainer ;
86
9- @ RequiredArgsConstructor
7+ import java .util .Set ;
8+
109public class OracleR2DBCDatabaseContainer implements R2DBCDatabaseContainer {
1110
12- @ Delegate (types = Startable .class )
1311 private final OracleContainer container ;
1412
13+ public OracleR2DBCDatabaseContainer (OracleContainer container ) {
14+ this .container = container ;
15+ }
16+
1517 public static ConnectionFactoryOptions getOptions (OracleContainer container ) {
1618 ConnectionFactoryOptions options = ConnectionFactoryOptions
1719 .builder ()
@@ -32,4 +34,24 @@ public ConnectionFactoryOptions configure(ConnectionFactoryOptions options) {
3234 .option (ConnectionFactoryOptions .PASSWORD , container .getPassword ())
3335 .build ();
3436 }
37+
38+ @ Override
39+ public Set <Startable > getDependencies () {
40+ return this .container .getDependencies ();
41+ }
42+
43+ @ Override
44+ public void start () {
45+ this .container .start ();
46+ }
47+
48+ @ Override
49+ public void stop () {
50+ this .container .stop ();
51+ }
52+
53+ @ Override
54+ public void close () {
55+ this .container .close ();
56+ }
3557}
You can’t perform that action at this time.
0 commit comments