Пример #1
0
  @Test
  public void shouldIncrementPublisherLimitOnSubscription() throws Exception {
    driverProxy.addSubscription(CommonContext.IPC_CHANNEL, STREAM_ID);
    driverConductor.doWork();

    assertThat(publisherLimit.get(), is(greaterThan(0L)));
  }
Пример #2
0
 @Test
 public void shouldStartWithPublisherLimitSetToZero() {
   assertThat(publisherLimit.get(), is(0L));
 }
Пример #3
0
 @Test
 public void shouldKeepPublisherLimitZeroOnNoSubscriptionUpdate() {
   directPublication.updatePublishersLimit();
   assertThat(publisherLimit.get(), is(0L));
 }