use of org.minidns.cache.LRUCache in project minidns by MiniDNS.
the class DNSSECTest method testUniDueSigFail.
@IntegrationTest(expected = DNSSECValidationFailedException.class)
public static void testUniDueSigFail() throws IOException {
DNSSECClient client = new DNSSECClient(new LRUCache(1024));
client.query("sigfail.verteiltesysteme.net", Record.TYPE.A);
}
use of org.minidns.cache.LRUCache in project minidns by MiniDNS.
the class IterativeDNSClientTest method loopIterativeTest.
@SuppressWarnings("unchecked")
@Test(expected = IterativeClientException.LoopDetected.class)
public void loopIterativeTest() throws IOException {
IterativeDNSClient client = new IterativeDNSClient(new LRUCache(0));
applyZones(client, rootZone(record("a", ns("a.ns")), record("b", ns("b.ns")), record("a.ns", a("1.1.1.1")), record("b.ns", a("1.1.1.2"))), zone("a", "a.ns", "1.1.1.1", record("test.a", ns("a.test.b"))), zone("b", "b.ns", "1.1.1.2", record("test.b", ns("b.test.a"))));
assertNull(client.query("www.test.a", TYPE.A));
}
Aggregations