Пример #1
0
 private SOARecord checkSOARecord(SOARecord record) {
   checkNotNull(record.getSerialStyle(), "SerialStyle cannot be null for SOARecord: %s", record);
   SOAData rdata = record.getRData();
   checkNotNull(rdata.getMname(), "rdata.mname cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getRname(), "rdata.rname cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getSerial(), "rdata.serial cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getRefresh(), "rdata.refresh cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getRetry(), "rdata.retry cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getExpire(), "rdata.expire cannot be null for SOARecord: %s", record);
   checkNotNull(rdata.getMinimum(), "rdata.minimum cannot be null for SOARecord: %s", record);
   return record;
 }
Пример #2
0
 @Override
 @SelectJson("data")
 @Consumes(MediaType.APPLICATION_JSON)
 public SOARecord expected() {
   return SOARecord.builder()
       .zone("adrianc.zone.dynecttest.jclouds.org")
       .fqdn("adrianc.zone.dynecttest.jclouds.org")
       .type("SOA")
       .id(50976579l)
       .ttl(3600)
       .serialStyle(INCREMENT)
       .rdata(
           SOAData.builder()
               .rname("1\\.5\\[email protected].")
               .retry(600)
               .mname("ns1.p28.dynect.net.")
               .minimum(60)
               .refresh(3600)
               .expire(604800)
               .serial(1)
               .build())
       .build();
 }