Skip to content

Commit e93e980

Browse files
test(APIClient): fix request1 and request2 tests
1 parent 969d01c commit e93e980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/net/hexonet/apiconnector/APIClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public void logout2() {
426426
@Test
427427
public void request1() {
428428
APIClient cl = new APIClient();
429-
cl.enableDebugMode().setURL(cl.getURL().replace("coreapi", "wrongcoreapi"))
429+
cl.enableDebugMode().setURL(cl.getURL().replace("api", "wrongcoreapi"))
430430
.setRemoteIPAddress("1.2.3.4").setCredentials("test.user", "test.passw0rd")
431431
.useOTESystem();
432432
Map<String, String> cmd = new HashMap<String, String>();
@@ -444,7 +444,7 @@ public void request1() {
444444
@Test
445445
public void request2() {
446446
APIClient cl = new APIClient();
447-
cl.setURL(cl.getURL().replace("coreapi", "wrongcoreapi")).setRemoteIPAddress("1.2.3.4")
447+
cl.setURL(cl.getURL().replace("api", "wrongcoreapi")).setRemoteIPAddress("1.2.3.4")
448448
.setCredentials("test.user", "test.passw0rd").useOTESystem();
449449
Map<String, String> cmd = new HashMap<String, String>();
450450
cmd.put("COMMAND", "GetUserIndex");

0 commit comments

Comments
 (0)