Skip to content

Commit ef0ff79

Browse files
author
Lloyd Watkin
committed
Add test for cached subscription, doesn't appear to actually do anything useful
1 parent 266792f commit ef0ff79

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/test/java/org/buddycloud/channelserver/db/jdbc/JDBCNodeStoreTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,6 +2224,16 @@ public void testGetIsCachedSubscriptionNodeReturnsTrueWhereThereAreSubscriptions
22242224
assertEquals(true, cached);
22252225
}
22262226

2227+
@Test
2228+
public void testGetIsCachedSubscriptionNodeForOwnerModeratorReturnsTrueWhereThereAreSubscriptions()
2229+
throws Exception {
2230+
dbTester.loadData("node_1");
2231+
int subscriptionCount = store
2232+
.countNodeSubscriptions(TEST_SERVER1_NODE1_ID, true);
2233+
boolean cached = store.nodeHasSubscriptions(TEST_SERVER1_NODE1_ID);
2234+
assertEquals(true, cached);
2235+
}
2236+
22272237
@Test(expected = IllegalArgumentException.class)
22282238
public void testFirehoseItemsThrowsExceptionIfNegativeLimitRequested()
22292239
throws Exception {

0 commit comments

Comments
 (0)