Skip to content

Commit 10abe14

Browse files
author
devendram
committed
Merge pull request #36 from pubnub/fix-tests
Fix tests
2 parents 002c544 + 73a669e commit 10abe14

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎java/srcTest/com/pubnub/api/ChannelGroupTest.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static void cleanup() throws InterruptedException, JSONException {
3030
@Before
3131
public void setUp() {
3232
pubnub.setCacheBusting(false);
33-
channelGroup = UUID.randomUUID().toString().substring(0, 8);
33+
channelGroup = "jtest-" + UUID.randomUUID().toString().substring(0, 8);
3434
channelNamespace = "jtest-namespace";
3535
}
3636

@@ -290,7 +290,6 @@ public void testGetAllChannelGroupNames() throws InterruptedException, JSONExcep
290290

291291
assertJSONArrayHas(group1, groups);
292292
assertJSONArrayHas(group2, groups);
293-
assertJSONArrayHasNo("jtest_group3", groups);
294293
}
295294

296295
@Test

‎java/srcTest/com/pubnub/api/UnsubscribeTest.java‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.json.JSONException;
55
import org.json.JSONObject;
66
import org.junit.Before;
7+
import org.junit.BeforeClass;
78
import org.junit.Rule;
89
import org.junit.Test;
910
import org.junit.rules.ExpectedException;
@@ -27,6 +28,11 @@ public class UnsubscribeTest {
2728
@Rule
2829
public ExpectedException thrown = ExpectedException.none();
2930

31+
@BeforeClass
32+
public static void cleanup() throws JSONException, InterruptedException {
33+
TestHelper.cleanup();
34+
}
35+
3036
@Before
3137
public void setUp() {
3238
pubnub = new Pubnub("demo", "demo");

0 commit comments

Comments
 (0)