use of com.amazonaws.services.rds.model.DBInstance in project Synapse-Stack-Builder by Sage-Bionetworks.
the class MySqlDatabaseSetupTest method testDeleteDatabaseInstanceDoesExist.
@Test
public void testDeleteDatabaseInstanceDoesExist() {
DeleteDBInstanceRequest req = new DeleteDBInstanceRequest();
req.setDBInstanceIdentifier("someDB");
when(mockClient.deleteDBInstance(req)).thenReturn(new DBInstance().withDBInstanceIdentifier("someDB"));
DBInstance inst = databaseSetup.deleteDatabaseInstance(req);
assertEquals(inst.getDBInstanceIdentifier(), "someDB");
}
Aggregations