@Test public void repositoryIsRemoved() { assertThat(underTest.isSatisfied(), is(true)); underTest.handle(new RepositoryDeletedEvent(repository)); assertThat(underTest.isSatisfied(), is(false)); verifyEventManagerEvents(satisfied(underTest), unsatisfied(underTest)); }
@Override @AllowConcurrentEvents @Subscribe public void handle(final RepositoryCreatedEvent event) { if (sameRepositoryAs(event.getRepository().getName())) { setSatisfied(true); } }
RepositoryExistsCondition extends RepositoryConditionSupport { @Override @AllowConcurrentEvents @Subscribe public void handle(final RepositoryCreatedEvent event) { if (sameRepositoryAs(event.getRepository().getName())) { setSatisfied(true); } } }
RepositoryExistsCondition extends RepositoryConditionSupport { @Override @AllowConcurrentEvents @Subscribe public void handle(final RepositoryCreatedEvent event) { if (sameRepositoryAs(event.getRepository().getName())) { setSatisfied(true); } } RepositoryExistsCondition(final EventManager eventManager,
                                   final RepositoryManager repositoryManager,
                                   final Supplier<String> repositoryName); }
RepositoryExistsCondition extends RepositoryConditionSupport { @Override @AllowConcurrentEvents @Subscribe public void handle(final RepositoryCreatedEvent event) { if (sameRepositoryAs(event.getRepository().getName())) { setSatisfied(true); } } RepositoryExistsCondition(final EventManager eventManager,
                                   final RepositoryManager repositoryManager,
                                   final Supplier<String> repositoryName); @Override @AllowConcurrentEvents @Subscribe void handle(final RepositoryCreatedEvent event); @AllowConcurrentEvents @Subscribe void handle(final RepositoryDeletedEvent event); @Override String toString(); @Override String explainSatisfied(); @Override String explainUnsatisfied(); }
RepositoryExistsCondition extends RepositoryConditionSupport { @Override @AllowConcurrentEvents @Subscribe public void handle(final RepositoryCreatedEvent event) { if (sameRepositoryAs(event.getRepository().getName())) { setSatisfied(true); } } RepositoryExistsCondition(final EventManager eventManager,
                                   final RepositoryManager repositoryManager,
                                   final Supplier<String> repositoryName); @Override @AllowConcurrentEvents @Subscribe void handle(final RepositoryCreatedEvent event); @AllowConcurrentEvents @Subscribe void handle(final RepositoryDeletedEvent event); @Override String toString(); @Override String explainSatisfied(); @Override String explainUnsatisfied();  }