use of com.google.cloud.dns.Zone in project google-cloud-java by GoogleCloudPlatform.
the class ITDnsTest method testDeleteZoneBatch.
@Test
public void testDeleteZoneBatch() {
try {
Zone created = DNS.create(ZONE1);
assertEquals(created, DNS.getZone(ZONE1.getName()));
DnsBatch batch = DNS.batch();
DnsBatchResult<Boolean> result = batch.deleteZone(ZONE1.getName());
batch.submit();
assertNull(DNS.getZone(ZONE1.getName()));
assertTrue(result.get());
} finally {
DNS.delete(ZONE1.getName());
}
}
Aggregations