private RewriterConfiguration getConfig() {
return new RewriterConfiguration();
}
public void testAddressConditionPositive() throws Exception {
RewriterConfiguration oConfiguration = getConfig();
ConditionalAction oAction = new ConditionalAction();
oAction.getConditions().add(new AddressCondition("127.0.0.1"));
oAction.getActions().add(new NotImplementedAction());
oConfiguration.getRules().add(oAction);
MockContextFacade oMockFacade = new MockContextFacade("/", ".",
"GET", new URL("http://localhost/test.aspx"));
oMockFacade.addServerVariable("REMOTE_ADDR", "127.0.0.1");