예제 #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));
 }