Skip to content

Commit

Permalink
Avoid warning about hard coded IP addresses in test class
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoellnitz committed May 21, 2016
1 parent 92c46be commit 8eead32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class UniqueHostHookTest {
@Test
public void testUniqueHostHook() {
MockitoAnnotations.initMocks(this);
MockHttpServletRequest correctRequest = new MockHttpServletRequest("GET", "http://"+DOMAIN+":8080"+URI);
MockHttpServletRequest correctRequest = new MockHttpServletRequest("GET", "http://"+DOMAIN+":"+"8080"+URI);
correctRequest.addHeader("Host", DOMAIN);
MockHttpServletRequest request = new MockHttpServletRequest("GET", "http://www.example.com:8080"+URI);
request.addHeader("Host", "www.example.com");
Expand Down

0 comments on commit 8eead32

Please sign in to comment.