Examples of stateDescription()


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

  @Test
  public void checkErrorOnActivation() {
    final Capability capability = capabilities().create("[withActivationError]").save();
    MatcherAssert.assertThat(capability.hasErrors(), is(true));
    MatcherAssert.assertThat(capability.isActive(), is(false));
    MatcherAssert.assertThat(capability.stateDescription(),
        containsString("This capability always fails on activate"));
  }

  /**
   * Verify that capability is initially active when created for a repository that is in service
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.