*
* @throws IOException
* Signals that an I/O exception has occurred.
*/
public void testHttpFormattingWithResolveAddressDisabled() throws IOException {
JFormatter out = new TextFormatter(OUT);
out.setResolveAddresses(false);
PcapPacket packet = TestUtils.getPcapPacket("tests/test-http-jpeg.pcap", 5);
Ip4 ip = new Ip4();
Ethernet eth = new Ethernet();
if (packet.hasHeader(eth)) {
out.format(eth);
}
if (packet.hasHeader(ip)) {
out.format(ip);
out.format(ip);
}
out.format(packet);
Html html = new Html();
assertTrue("html header not found", packet.hasHeader(html));
System.out.printf("link related tags=%s\n", Arrays.asList(html.links())
.toString());