Package org.sonatype.nexus.capabilities.client

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


      rutauthCapability = capabilities().getUnique(Filter.capabilitiesThat().haveType("rutauth"));
    }
    catch (NexusClientNotFoundException e) {
      rutauthCapability = capabilities().create("rutauth");
    }
    rutauthCapability.withProperty("httpHeader", headerName).save();
  }

  protected NexusClient createNexusClientForRemoteHeader(final String headerName,
                                                         final String headerValue)
  {
View Full Code Here


        .withProperty("repository", rIdActive)
        .save();
    MatcherAssert.assertThat(capability.isActive(), is(true));

    logRemote("Change capability to use repository '{}'", rIdInactive);
    capability.withProperty("repository", rIdInactive).save();
    MatcherAssert.assertThat(capability.isActive(), is(false));
  }

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

        .withProperty("repository", rIdNotBlocked)
        .save();
    MatcherAssert.assertThat(capability.isActive(), is(true));

    logRemote("Change capability to use repository '{}'", rIdBlocked);
    capability.withProperty("repository", rIdBlocked).save();
    MatcherAssert.assertThat(capability.isActive(), is(false));
  }

  /**
   * Verify that a capability is automatically removed when configured repository is removed.
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.