Examples of NexusStartedEvent


Examples of org.sonatype.nexus.proxy.events.NexusStartedEvent

    environmentBuilder().buildEnvironment(this);

    eventBus().post(new ConfigurationChangeEvent(applicationConfiguration, null, null));

    eventBus().post(new NexusStartedEvent(null));
  }
View Full Code Here

Examples of org.sonatype.nexus.proxy.events.NexusStartedEvent

  /**
   * Condition is satisfied when Nexus is started.
   */
  @Test
  public void satisfiedWhenNexusStarted() {
    underTest.handle(new NexusStartedEvent(this));
    assertThat(underTest.isSatisfied(), is(true));

    verifyEventBusEvents(satisfied(underTest));
  }
View Full Code Here

Examples of org.sonatype.nexus.proxy.events.NexusStartedEvent

  /**
   * Condition is satisfied when negated is not satisfied.
   */
  @Test
  public void unsatisfiedWhenNexusStopped() {
    underTest.handle(new NexusStartedEvent(this));
    underTest.handle(new NexusStoppedEvent(this));
    assertThat(underTest.isSatisfied(), is(false));

    verifyEventBusEvents(satisfied(underTest), unsatisfied(underTest));
  }
View Full Code Here

Examples of org.sonatype.nexus.proxy.events.NexusStartedEvent

          }
        }
        log.info("Nexus Work Directory : {}", workDirPath);
        log.info("Started {}", getNexusNameForLogs());
      }
      eventBus.post(new NexusStartedEvent(this));
    }
    catch (IOException e) {
      applicationStatusSource.getSystemStatus().setState(SystemState.BROKEN_IO);
      applicationStatusSource.getSystemStatus().setErrorCause(e);
      log.error("Could not start Nexus, bad IO exception!", e);
View Full Code Here

Examples of org.sonatype.nexus.proxy.events.NexusStartedEvent

        mock(RepositoryConditions.class),
        new NexusConditions(new NexusIsActiveCondition(eventBus)),
        mock(CryptoConditions.class)
    );

    eventBus.post(new NexusStartedEvent(this));

    when(activationCondition.isSatisfied()).thenReturn(true);
    when(capability.activationCondition()).thenReturn(activationCondition);

    when(validityCondition.isSatisfied()).thenReturn(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.