Ejemplo n.º 1
0
  private void checkEvents(String msg, Metadata metadata, boolean failed) {
    List<RepositoryEvent> events = listener.getEvents();
    assertEquals(msg, 2, events.size());
    RepositoryEvent event = events.get(0);
    assertEquals(msg, EventType.METADATA_INSTALLING, event.getType());
    assertEquals(msg, metadata, event.getMetadata());
    assertNull(msg, event.getException());

    event = events.get(1);
    assertEquals(msg, EventType.METADATA_INSTALLED, event.getType());
    assertEquals(msg, metadata, event.getMetadata());
    if (failed) {
      assertNotNull(msg, event.getException());
    } else {
      assertNull(msg, event.getException());
    }
  }
 public void metadataResolving(RepositoryEvent event) {
   out.println("Resolving metadata " + event.getMetadata() + " from " + event.getRepository());
 }
 public void metadataInvalid(RepositoryEvent event) {
   out.println("Invalid metadata " + event.getMetadata());
 }
 public void metadataInstalling(RepositoryEvent event) {
   out.println("Installing " + event.getMetadata() + " to " + event.getFile());
 }
 public void metadataDeploying(RepositoryEvent event) {
   out.println("Deploying " + event.getMetadata() + " to " + event.getRepository());
 }
Ejemplo n.º 6
0
 public void metadataResolving(RepositoryEvent event) {
   log.debug("Resolving metadata " + event.getMetadata() + " from " + event.getRepository());
 }
Ejemplo n.º 7
0
 public void metadataInvalid(RepositoryEvent event) {
   log.debug("Invalid metadata " + event.getMetadata());
 }
Ejemplo n.º 8
0
 public void metadataInstalling(RepositoryEvent event) {
   log.debug("Installing " + event.getMetadata() + " to " + event.getFile());
 }
Ejemplo n.º 9
0
 public void metadataDeploying(RepositoryEvent event) {
   log.debug("Deploying " + event.getMetadata() + " to " + event.getRepository());
 }