Skip to content

Commit 39232ca

Browse files
committed
. fixed missing operation type for APNS channels removal and tests for it
1 parent 6df35b1 commit 39232ca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/main/java/com/pubnub/api/endpoints/push/RemoveAllPushChannelsForDevice.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected PNPushRemoveAllChannelsResult createResponse(Response<List<Object>> in
7474

7575
@Override
7676
protected PNOperationType getOperationType() {
77-
return null; // PNOperationType.PNPushNotificationModifiedChannelsOperations;
77+
return PNOperationType.PNRemoveAllPushNotificationsOperation;
7878
}
7979

8080
@Override

‎src/test/java/com/pubnub/api/endpoints/push/ModifyPushChannelsForDeviceTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void testOperationTypeSuccessRemoveAll() throws IOException, PubNubExcept
108108
instance.deviceId("niceDevice").pushType(PNPushType.MPNS).async(new PNCallback<PNPushRemoveAllChannelsResult>() {
109109
@Override
110110
public void onResponse(PNPushRemoveAllChannelsResult result, PNStatus status) {
111-
if (status != null && status.getOperation()== null) {
111+
if (status != null && status.getOperation() == PNOperationType.PNRemoveAllPushNotificationsOperation) {
112112
atomic.incrementAndGet();
113113
}
114114
}

0 commit comments

Comments
 (0)