6465666768697071727374
oMockFacade.addServerVariable("REMOTE_ADDR", "10.0.0.1"); RewriterEngine oEngine = new RewriterEngine(oConfiguration); try { oEngine.rewrite(oMockFacade); } catch (RewriteException e) { fail(); } oMockFacade.expectStatusCode(200);
8889909192939495969798
"GET", new URL("http://localhost/test.aspx")); RewriterEngine oEngine = new RewriterEngine(oConfiguration); try { oEngine.rewrite(oMockFacade); fail(); } catch (RewriteException e) { } oMockFacade.expectStatusCode(501);
112113114115116117118119120121122
"GET", new URL("http://localhost/test.aspx")); RewriterEngine oEngine = new RewriterEngine(oConfiguration); try { oEngine.rewrite(oMockFacade); } catch (RewriteException e) { fail(); } oMockFacade.expectStatusCode(200);
136137138139140141142143144145146
160161162163164165166167168169170