File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed
main/java/com/oracle/cloud/spring/adb
test/java/com/oracle/cloud/spring/adb Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2024, Oracle and/or its affiliates.
2
+ // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3
+
4
+ package com .oracle .cloud .spring .adb ;
5
+
6
+ /**
7
+ * Interface for OCI Autonomous Database module.
8
+ */
9
+ public interface AutonomousDatabase {
10
+
11
+ }
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2024, Oracle and/or its affiliates.
2
+ // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3
+
4
+ package com .oracle .cloud .spring .adb ;
5
+
6
+ import com .oracle .bmc .database .DatabaseClient ;
7
+
8
+ /**
9
+ * Implementation for the OCI Autonomous Database module.
10
+ */
11
+ public class AutonomousDatabaseImpl implements AutonomousDatabase {
12
+
13
+ final DatabaseClient client ;
14
+
15
+ public AutonomousDatabaseImpl (DatabaseClient client ) {
16
+ this .client = client ;
17
+ }
18
+
19
+ }
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2024, Oracle and/or its affiliates.
2
+ // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
3
+
4
+ package com .oracle .cloud .spring .adb ;
5
+
6
+ import com .oracle .bmc .database .DatabaseClient ;
7
+ import com .oracle .bmc .database .responses .*;
8
+ import org .junit .jupiter .api .Test ;
9
+
10
+ import static org .mockito .Mockito .*;
11
+ import static org .junit .jupiter .api .Assertions .*;
12
+
13
+
14
+ public class AutonomousDatabaseImplTests {
15
+
16
+ final DatabaseClient client = mock (DatabaseClient .class );
17
+
18
+ final AutonomousDatabase autonomousDatabase = new AutonomousDatabaseImpl (client );
19
+
20
+ @ Test
21
+ void testDatabaseClient () {
22
+ when (client .createAutonomousDatabase (any ())).thenReturn (mock (CreateAutonomousDatabaseResponse .class ));
23
+ }
24
+
25
+ }
You can’t perform that action at this time.
0 commit comments