Package org.sonatype.nexus.client.core.subsystem.targets

Examples of org.sonatype.nexus.client.core.subsystem.targets.RepositoryTarget.refresh()


  @Test
  public void refreshTarget() {
    RepositoryTarget needsRefresh = createTarget("deleteTarget", "pattern1", "pattern2");
    targets().get(needsRefresh.id()).withPatterns("differentPattern").save();
    assertThat(needsRefresh.refresh().patterns(), contains("differentPattern"));
  }

  @Test(expected = NexusClientNotFoundException.class)
  public void getNonExistentStatus() {
    routing().getStatus("no-such-repo-id");
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.