Examples of description()


Examples of org.sonar.api.batch.rule.Rule.description()

    Rule rule = rules.find(RuleKey.of("checkstyle", "AvoidNull"));
    assertThat(rule).isNotNull();
    assertThat(rule.key()).isEqualTo(RuleKey.of("checkstyle", "AvoidNull"));
    assertThat(rule.name()).isEqualTo("Avoid Null");
    assertThat(rule.description()).isEqualTo("Should avoid NULL");
    assertThat(rule.severity()).isEqualTo(Severity.MINOR);
    assertThat(rule.internalKey()).isNull();
    assertThat(rule.params()).hasSize(1);

    RuleParam param = rule.param("myParameter");
View Full Code Here

Examples of org.sonar.api.batch.rule.RuleParam.description()

    assertThat(rule.internalKey()).isNull();
    assertThat(rule.params()).hasSize(1);

    RuleParam param = rule.param("myParameter");
    assertThat(param).isNotNull();
    assertThat(param.description()).isEqualTo("My Parameter");
  }

  @Test
  public void build_rules_with_default_debt_definitions() throws Exception {
    setupData("build_rules_with_default_debt_definitions");
View Full Code Here

Examples of org.sonar.api.issue.ActionPlan.description()

    ActionPlan actionPlan = actionPlanCaptor.getValue();

    assertThat(actionPlan).isNotNull();
    assertThat(actionPlan.key()).isNotNull();
    assertThat(actionPlan.name()).isEqualTo("Long term");
    assertThat(actionPlan.description()).isEqualTo("Long term issues");
    assertThat(actionPlan.deadLine()).isNotNull();
  }

  @Test
  public void update_action_plan() {
View Full Code Here

Examples of org.sonar.api.server.ws.WebService.Controller.description()

  @Test
  public void define_ws() throws Exception {
    Controller controller = tester.controller("api/qualitygates");
    assertThat(controller).isNotNull();
    assertThat(controller.path()).isEqualTo("api/qualitygates");
    assertThat(controller.description()).isNotEmpty();
    assertThat(controller.actions()).hasSize(15);

    Action list = controller.action("list");
    assertThat(list).isNotNull();
    assertThat(list.handler()).isNotNull();
View Full Code Here

Examples of org.sonar.core.issue.DefaultIssueFilter.description()

    ArgumentCaptor<DefaultIssueFilter> issueFilterCaptor = ArgumentCaptor.forClass(DefaultIssueFilter.class);
    verify(issueFilterService).save(issueFilterCaptor.capture(), any(UserSession.class));
    DefaultIssueFilter issueFilter = issueFilterCaptor.getValue();
    assertThat(issueFilter.name()).isEqualTo("Long term");
    assertThat(issueFilter.description()).isEqualTo("Long term issues");
  }

  @Test
  public void update_issue_filter() {
    Map<String, String> parameters = newHashMap();
View Full Code Here

Examples of org.sonar.wsclient.issue.ActionPlan.description()

    assertThat(httpServer.requestedPath()).isEqualTo("/api/action_plans/search?project=com.sonarsource.it.samples:simple-sample");
    assertThat(actionPlans).hasSize(1);
    ActionPlan actionPlan = actionPlans.get(0);
    assertThat(actionPlan.key()).isEqualTo("382f6f2e-ad9d-424a-b973-9b065e04348a");
    assertThat(actionPlan.name()).isEqualTo("Long term");
    assertThat(actionPlan.description()).isEqualTo("Long term acton plan");
    assertThat(actionPlan.project()).isEqualTo("com.sonarsource.it.samples:simple-sample");
    assertThat(actionPlan.status()).isEqualTo("CLOSED");
    assertThat(actionPlan.userLogin()).isEqualTo("admin");
    assertThat(actionPlan.deadLine()).isNotNull();
    assertThat(actionPlan.totalIssues()).isEqualTo(3);
View Full Code Here

Examples of org.sonatype.nexus.capability.Capability.description()

        .withTypeName(descriptor.name())
        .withActive(reference.context().isActive())
        .withError(reference.context().hasFailure());

    try {
      capabilityStatus.setDescription(capability.description());
    }
    catch (Throwable e) {
      log.warn(
          "Failed to render description of capability '{}/{}' due to {}/{}",
          reference.context().type(), reference.context().id(),
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.security.Privilege.description()

        .withTargetId(targetId)
        .create().iterator().next();

    final Privilege privilege = privileges().get(saved.id());
    assertThat(privilege, is(notNullValue()));
    assertThat(privilege.description(), is("bar"));

    // name is mangled on creation - "$name - ($method)"
    assertThat(privilege.name(), is(saved.name()));

    assertThat(privilege.methods(), contains("read"));
View Full Code Here

Examples of org.teiid.deployers.ExtendedPropertyMetadata.description()

  @Test
  public void testDefault() {
    ExtendedPropertyMetadata metadata = new ExtendedPropertyMetadata("x", "java.lang.String", "some-name", null);
   
    Assert.assertEquals("some-name", metadata.display());
    Assert.assertEquals(null, metadata.description());
    Assert.assertEquals(false, metadata.advanced());
    Assert.assertEquals(false, metadata.required());
    Assert.assertEquals(false, metadata.masked());
    Assert.assertEquals(true , metadata.readOnly());
  }
View Full Code Here

Examples of org.terasology.input.RegisterBindButton.description()

        for (Class registerBindClass : classes) {
            RegisterBindButton info = (RegisterBindButton) registerBindClass.getAnnotation(RegisterBindButton.class);
            SimpleUri bindUri = new SimpleUri(environment.getModuleProviding(registerBindClass), info.id());
            if (BindButtonEvent.class.isAssignableFrom(registerBindClass)) {
                try {
                    BindableButton bindButton = inputSystem.registerBindButton(bindUri, info.description(), (BindButtonEvent) registerBindClass.newInstance());
                    bindButton.setMode(info.mode());
                    bindButton.setRepeating(info.repeating());

                    for (Input input : getBinds(bindUri)) {
                        if (input != null) {
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.