@Test public void shouldIncrementPublisherLimitOnSubscription() throws Exception { driverProxy.addSubscription(CommonContext.IPC_CHANNEL, STREAM_ID); driverConductor.doWork(); assertThat(publisherLimit.get(), is(greaterThan(0L))); }
@Test public void shouldStartWithPublisherLimitSetToZero() { assertThat(publisherLimit.get(), is(0L)); }
@Test public void shouldKeepPublisherLimitZeroOnNoSubscriptionUpdate() { directPublication.updatePublishersLimit(); assertThat(publisherLimit.get(), is(0L)); }