@Test public void testValidDomainName() { String name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; AbstractDnsRecord record = new AbstractDnsRecord(name, DnsRecordType.A, 0) { }; Assert.assertEquals(name + '.', record.name()); }
@Override public String name() { return name; }
AbstractDnsRecord implements DnsRecord { @Override public String name() { return name; } }
AbstractDnsRecord implements DnsRecord { @Override public String name() { return name; } protected  AbstractDnsRecord(String name, DnsRecordType type, long timeToLive); protected  AbstractDnsRecord(String name, DnsRecordType type, int dnsClass, long timeToLive); }
AbstractDnsRecord implements DnsRecord { @Override public String name() { return name; } protected  AbstractDnsRecord(String name, DnsRecordType type, long timeToLive); protected  AbstractDnsRecord(String name, DnsRecordType type, int dnsClass, long timeToLive); @Override String name(); @Override DnsRecordType type(); @Override int dnsClass(); @Override long timeToLive(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
AbstractDnsRecord implements DnsRecord { @Override public String name() { return name; } protected  AbstractDnsRecord(String name, DnsRecordType type, long timeToLive); protected  AbstractDnsRecord(String name, DnsRecordType type, int dnsClass, long timeToLive); @Override String name(); @Override DnsRecordType type(); @Override int dnsClass(); @Override long timeToLive(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }