Skip to content

Commit 89b80b7

Browse files
author
Max Presman
committed
patch up variable names + endpoint test
1 parent e4628ca commit 89b80b7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/main/java/com/pubnub/api/endpoints/Endpoint.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ protected final Map<String, String> createBaseParams() {
284284
params.put("uuid", this.pubnub.getConfiguration().getUuid());
285285

286286
if (this.pubnub.getConfiguration().isIncludeInstanceIdentifier()) {
287-
params.put("instanceId", pubnub.getInstanceId());
287+
params.put("instanceid", pubnub.getInstanceId());
288288
}
289289

290290
if (this.pubnub.getConfiguration().isIncludeRequestIdentifier()) {
291-
params.put("requestId", pubnub.getRequestId());
291+
params.put("requestid", pubnub.getRequestId());
292292
}
293293

294294
// add the auth key for publish and subscribe.

src/test/java/com/pubnub/api/endpoints/EndpointTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void beforeEach() throws IOException {
2525
}
2626

2727
@Test
28-
public void testUUID() throws PubNubException {
28+
public void testBaseParams() throws PubNubException {
2929
Endpoint<Object, Object> endpoint = new Endpoint<Object, Object>(pubnub, null) {
3030

3131
@Override
@@ -90,6 +90,8 @@ public Request request() {
9090
};
9191

9292
Assert.assertEquals("myUUID",baseParams.get("uuid"));
93+
Assert.assertEquals("PubNubRequestId",baseParams.get("requestid"));
94+
Assert.assertEquals("PubNubInstanceId",baseParams.get("instanceid"));
9395
return fakeCall;
9496
}
9597
};

0 commit comments

Comments
 (0)