Package org.archive.wayback.replay.html

Examples of org.archive.wayback.replay.html.ReplayParseContext.resolve()


        String out = servletOutput.getString();
        assertEquals("servlet output", payload, out);
       
        ReplayParseContext context = parseContextCapture.getValue();
        // testing indirectly because ReplayParseContext has no method returning baseUrl.
        assertEquals("baseUrl is correctly set up", "http://www.example.com/a.html", context.resolve("a.html"));
    }
   
    /**
     * test revisit record (in new format with HTTP headers).
     * @throws Exception
View Full Code Here


        String out = servletOutput.getString();
        assertEquals("servlet output", payload, out);
       
        ReplayParseContext context = parseContextCapture.getValue();
        // testing indirectly because ReplayParseContext has no method returning baseUrl.
        assertEquals("baseUrl is correctly set up", "http://www.example.com/a.html", context.resolve("a.html"));
    }
   
    // no test for old-style revisit record as headerResource, because it is caller's responsibility to
    // set headerResource = payloadResource in this case.
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.