Package org.sonatype.nexus.capabilities.client

Examples of org.sonatype.nexus.capabilities.client.Capability.refresh()


        .save();
    MatcherAssert.assertThat(capability.isActive(), is(true));

    logRemote("Put repository '{}' out of service", rId);
    repository.putOutOfService();
    capability.refresh();
    MatcherAssert.assertThat(capability.isActive(), is(false));

    logRemote("Put repository '{}' back in service", rId);
    repository.putInService();
    capability.refresh();
View Full Code Here


    capability.refresh();
    MatcherAssert.assertThat(capability.isActive(), is(false));

    logRemote("Put repository '{}' back in service", rId);
    repository.putInService();
    capability.refresh();
    MatcherAssert.assertThat(capability.isActive(), is(true));
  }

  /**
   * Verify that capability is initially inactive when created for a repository that is out of service
View Full Code Here

        .save();
    MatcherAssert.assertThat(capability.isActive(), is(false));

    logRemote("Put repository '{}' back in service", rId);
    repository.putInService();
    capability.refresh();
    MatcherAssert.assertThat(capability.isActive(), is(true));
  }

  /**
   * Verify that capability becomes inactive when repository is changed and the new repository is out of service
View Full Code Here

        .save();
    MatcherAssert.assertThat(capability.isActive(), is(true));

    logRemote("Block repository '{}'", rId);
    repository.block();
    capability.refresh();
    MatcherAssert.assertThat(capability.isActive(), is(false));

    logRemote("Unblock repository '{}'", rId);
    repository.unblock();
    capability.refresh();
View Full Code Here

    capability.refresh();
    MatcherAssert.assertThat(capability.isActive(), is(false));

    logRemote("Unblock repository '{}'", rId);
    repository.unblock();
    capability.refresh();
    MatcherAssert.assertThat(capability.isActive(), is(true));
  }

  /**
   * Verify that capability is initially inactive when created for a repository that is blocked
View Full Code Here

        .save();
    MatcherAssert.assertThat(capability.isActive(), is(false));

    logRemote("Unblock repository '{}'", rId);
    repository.unblock();
    capability.refresh();
    MatcherAssert.assertThat(capability.isActive(), is(true));
  }

  /**
   * Verify that capability becomes inactive when repository is changed and the new repository is blocked
View Full Code Here

    logRemote("Remove repository '{}'", rId);
    repository.remove();

    thrown.expect(UniformInterfaceException.class);
    thrown.expectMessage(String.format("Capability with id '%s' was not found", capability.id()));
    capability.refresh();
  }

  /**
   * Verify that a capability, that has an activation condition that another capability of a specific type exists,
   * becomes active/inactive depending on existence of that another capability.
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.