@@ -34,28 +34,28 @@ public void testSyncSuccess() throws IOException, PubNubException, InterruptedEx
3434 assertThat (response , org .hamcrest .Matchers .equalTo (true ));
3535 }
3636
37- @ org .junit .Test (expected =PubNubException .class )
38- public void testSyncGroupMissing () throws IOException , PubNubException , InterruptedException {
39- stubFor (get (urlPathEqualTo ("/v1/channel-registration/sub-key/mySubscribeKey/channel-group/groupA" ))
40- .willReturn (aResponse ().withBody ("{\" status\" : 200, \" message\" : \" OK\" , \" payload\" : {} , \" service\" : \" ChannelGroups\" }" )));
41-
42- boolean response = partialAddChannelChannelGroup .channels (Arrays .asList ("ch1" , "ch2" )).sync ();
43- }
44-
45- @ org .junit .Test (expected =PubNubException .class )
46- public void testSyncGroupIsEmpty () throws IOException , PubNubException , InterruptedException {
47- stubFor (get (urlPathEqualTo ("/v1/channel-registration/sub-key/mySubscribeKey/channel-group/groupA" ))
48- .willReturn (aResponse ().withBody ("{\" status\" : 200, \" message\" : \" OK\" , \" payload\" : {} , \" service\" : \" ChannelGroups\" }" )));
49-
50- boolean response = partialAddChannelChannelGroup .channelGroup ("" ).channels (Arrays .asList ("ch1" , "ch2" )).sync ();
51- }
52-
53- @ org .junit .Test (expected =PubNubException .class )
54- public void testSyncChannelMissing () throws IOException , PubNubException , InterruptedException {
55- stubFor (get (urlPathEqualTo ("/v1/channel-registration/sub-key/mySubscribeKey/channel-group/groupA" ))
56- .willReturn (aResponse ().withBody ("{\" status\" : 200, \" message\" : \" OK\" , \" payload\" : {} , \" service\" : \" ChannelGroups\" }" )));
57-
58- boolean response = partialAddChannelChannelGroup .channelGroup ("groupA" ).sync ();
59- }
37+ // @org.junit.Test(expected=PubNubException.class)
38+ // public void testSyncGroupMissing() throws IOException, PubNubException, InterruptedException {
39+ // stubFor(get(urlPathEqualTo("/v1/channel-registration/sub-key/mySubscribeKey/channel-group/groupA"))
40+ // .willReturn(aResponse().withBody("{\"status\": 200, \"message\": \"OK\", \"payload\": {} , \"service\": \"ChannelGroups\"}")));
41+ //
42+ // boolean response = partialAddChannelChannelGroup.channels(Arrays.asList("ch1", "ch2")).sync();
43+ // }
44+ //
45+ // @org.junit.Test(expected=PubNubException.class)
46+ // public void testSyncGroupIsEmpty() throws IOException, PubNubException, InterruptedException {
47+ // stubFor(get(urlPathEqualTo("/v1/channel-registration/sub-key/mySubscribeKey/channel-group/groupA"))
48+ // .willReturn(aResponse().withBody("{\"status\": 200, \"message\": \"OK\", \"payload\": {} , \"service\": \"ChannelGroups\"}")));
49+ //
50+ // boolean response = partialAddChannelChannelGroup.channelGroup("").channels(Arrays.asList("ch1", "ch2")).sync();
51+ // }
52+ //
53+ // @org.junit.Test(expected=PubNubException.class)
54+ // public void testSyncChannelMissing() throws IOException, PubNubException, InterruptedException {
55+ // stubFor(get(urlPathEqualTo("/v1/channel-registration/sub-key/mySubscribeKey/channel-group/groupA"))
56+ // .willReturn(aResponse().withBody("{\"status\": 200, \"message\": \"OK\", \"payload\": {} , \"service\": \"ChannelGroups\"}")));
57+ //
58+ // boolean response = partialAddChannelChannelGroup.channelGroup("groupA").sync();
59+ // }
6060
6161}
0 commit comments