Exemplo n.º 1
0
  @Test
  public void shouldIncrementPublisherLimitOnSubscription() throws Exception {
    driverProxy.addSubscription(CommonContext.IPC_CHANNEL, STREAM_ID);
    driverConductor.doWork();

    assertThat(publisherLimit.get(), is(greaterThan(0L)));
  }
Exemplo n.º 2
0
 @Test
 public void shouldStartWithPublisherLimitSetToZero() {
   assertThat(publisherLimit.get(), is(0L));
 }
Exemplo n.º 3
0
 @Test
 public void shouldKeepPublisherLimitZeroOnNoSubscriptionUpdate() {
   directPublication.updatePublishersLimit();
   assertThat(publisherLimit.get(), is(0L));
 }