@Test public void testCheckConditionShouldReturnTrueWhenRequestHasLocalhostNameUri() throws URISyntaxException { uri = new URI("http: given(request.getUri()).willReturn(uri); boolean actualResult = underTest.checkIfRequestTargetsLocalhost(request); assertTrue(actualResult); }
public boolean checkIfRequestTargetsLocalhost(final WilmaHttpRequest request) { URI requestUri = request.getUri(); return isLocalhost(requestUri); }
LocalhostRequestChecker { public boolean checkIfRequestTargetsLocalhost(final WilmaHttpRequest request) { URI requestUri = request.getUri(); return isLocalhost(requestUri); } }
LocalhostRequestChecker { public boolean checkIfRequestTargetsLocalhost(final WilmaHttpRequest request) { URI requestUri = request.getUri(); return isLocalhost(requestUri); }  }
LocalhostRequestChecker { public boolean checkIfRequestTargetsLocalhost(final WilmaHttpRequest request) { URI requestUri = request.getUri(); return isLocalhost(requestUri); }  boolean checkIfRequestTargetsLocalhost(final WilmaHttpRequest request); }
LocalhostRequestChecker { public boolean checkIfRequestTargetsLocalhost(final WilmaHttpRequest request) { URI requestUri = request.getUri(); return isLocalhost(requestUri); }  boolean checkIfRequestTargetsLocalhost(final WilmaHttpRequest request);  }