diff options
Diffstat (limited to 'src/test/java')
| -rw-r--r-- | src/test/java/com/p4square/ccbapi/CCBAPIClientTest.java | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/p4square/ccbapi/CCBAPIClientTest.java b/src/test/java/com/p4square/ccbapi/CCBAPIClientTest.java index b7d32e1..71427b5 100644 --- a/src/test/java/com/p4square/ccbapi/CCBAPIClientTest.java +++ b/src/test/java/com/p4square/ccbapi/CCBAPIClientTest.java @@ -158,10 +158,10 @@ public class CCBAPIClientTest {      @Test      public void testGetIndividualProfilesByLogin() throws Exception {          // Set expectation. -        URI expectedURI = new URI("https://localhost:8080/api.php?" -                + "srv=individual_profile_from_login_password&password=pass&login=user"); +        URI expectedURI = new URI("https://localhost:8080/api.php?srv=individual_profile_from_login_password"); +        byte[] expectedForm = "login=user&password=pass".getBytes();          InputStream is = getClass().getResourceAsStream("model/ccb_individual_profile_response.xml"); -        EasyMock.expect(mockHttpClient.sendPostRequest(expectedURI, null)) +        EasyMock.expect(mockHttpClient.sendPostRequest(EasyMock.eq(expectedURI), EasyMock.aryEq(expectedForm)))                  .andReturn(is);          EasyMock.replay(mockHttpClient);  | 
