Skip to content

Commit 984a7bb

Browse files
committed
starting to code
Signed-off-by: Mark Nelson <mark.x.nelson@oracle.com>
1 parent 7f19a66 commit 984a7bb

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
}

0 commit comments

Comments
 (0)