@Test public void testTruncatedReplyPacketsWithOriginalArray() { byte[] packet = createReplyPacket(); for (int truncatedLength = 0; truncatedLength < packet.length; truncatedLength++) { try { decode(packet, truncatedLength); fail("decoding a truncated packet did not throw IOException"); } catch (IOException e) { } } }
static Result decode(byte[] packet, int packetLength) throws IOException { Result result = new Result(); decode(packet, packetLength, result); return result; }
MDNSDiscover { static Result decode(byte[] packet, int packetLength) throws IOException { Result result = new Result(); decode(packet, packetLength, result); return result; } }
MDNSDiscover { static Result decode(byte[] packet, int packetLength) throws IOException { Result result = new Result(); decode(packet, packetLength, result); return result; }  }
MDNSDiscover { static Result decode(byte[] packet, int packetLength) throws IOException { Result result = new Result(); decode(packet, packetLength, result); return result; }  static void discover(String serviceType, Callback callback, int timeout); static Result resolve(String serviceName, int timeout); }
MDNSDiscover { static Result decode(byte[] packet, int packetLength) throws IOException { Result result = new Result(); decode(packet, packetLength, result); return result; }  static void discover(String serviceType, Callback callback, int timeout); static Result resolve(String serviceName, int timeout);  }