Exemplo n.º 1
0
 @Test
 public void end_with_domain_ipv4_dash_outside_range_upper() {
   final Domain domain = Domain.parse("1-10.200.193.193.in-addr.arpa");
   assertThat(domain.endsWithDomain(ciString("n.s.100.200.193.193.in-addr.arpa")), is(false));
 }
Exemplo n.º 2
0
 @Test
 public void end_with_domain_ipv4_dash_no_match() {
   final Domain domain = Domain.parse("1-10.200.193.193.in-addr.arpa");
   assertThat(domain.endsWithDomain(ciString("n.s.5.200a193.193.in-addr.arpa")), is(false));
 }
Exemplo n.º 3
0
 @Test
 public void end_with_domain_ipv6_fails() {
   final Domain domain = Domain.parse("0.0.0.0.8.f.7.0.1.0.0.2.IP6.ARPA");
   assertThat(domain.endsWithDomain(ciString("a.ns.0.0.0.8.f.7.0.1.0.0.2.IP6.ARPA")), is(false));
 }
Exemplo n.º 4
0
 @Test
 public void end_with_domain_ipv4_fails() {
   final Domain domain = Domain.parse("200.193.193.in-addr.arpa");
   assertThat(domain.endsWithDomain(ciString("193.193.in-addr.arpa")), is(false));
 }
Exemplo n.º 5
0
 @Test
 public void end_with_domain_enum_fails() {
   final Domain domain = Domain.parse("2.1.2.1.5.5.5.2.0.2.1.e164.arpa");
   assertThat(domain.endsWithDomain(ciString("a.ns.2.1.2.1.5.5.5.2.0.e164.arpa")), is(false));
 }