@Test public void testProcessShouldWhenByPassExistsInHeaderNameShouldNotRedirectRequest() throws ApplicationException { Map<String, String> headers = new HashMap<>(); headers.put(BYPASS_VALUE, ""); given(request.getHeaders()).willReturn(headers); underTest.process(request); verify(router, never()).reroute(request); }
@Override public void process(final WilmaHttpEntity entity) throws ApplicationException { WilmaHttpRequest request = (WilmaHttpRequest) entity; boolean bypassWilma = isByPassPresentInHeader(request.getHeaders()); if (!bypassWilma && !request.isRerouted()) { router.reroute(request); } }
RouterProcessor extends ProcessorBase { @Override public void process(final WilmaHttpEntity entity) throws ApplicationException { WilmaHttpRequest request = (WilmaHttpRequest) entity; boolean bypassWilma = isByPassPresentInHeader(request.getHeaders()); if (!bypassWilma && !request.isRerouted()) { router.reroute(request); } } }
RouterProcessor extends ProcessorBase { @Override public void process(final WilmaHttpEntity entity) throws ApplicationException { WilmaHttpRequest request = (WilmaHttpRequest) entity; boolean bypassWilma = isByPassPresentInHeader(request.getHeaders()); if (!bypassWilma && !request.isRerouted()) { router.reroute(request); } }  }
RouterProcessor extends ProcessorBase { @Override public void process(final WilmaHttpEntity entity) throws ApplicationException { WilmaHttpRequest request = (WilmaHttpRequest) entity; boolean bypassWilma = isByPassPresentInHeader(request.getHeaders()); if (!bypassWilma && !request.isRerouted()) { router.reroute(request); } }  @Override void process(final WilmaHttpEntity entity); }
RouterProcessor extends ProcessorBase { @Override public void process(final WilmaHttpEntity entity) throws ApplicationException { WilmaHttpRequest request = (WilmaHttpRequest) entity; boolean bypassWilma = isByPassPresentInHeader(request.getHeaders()); if (!bypassWilma && !request.isRerouted()) { router.reroute(request); } }  @Override void process(final WilmaHttpEntity entity);  }