Package org.sonar.api.test

Examples of org.sonar.api.test.MutableTestCase.testPlan()


    plan.addTestCase("T2");

    assertThat(plan.testCases()).hasSize(2);
    MutableTestCase firstTestCase = Iterables.get(plan.testCases(), 0);
    assertThat(firstTestCase.name()).isEqualTo("T1");
    assertThat(firstTestCase.testPlan()).isSameAs(plan);

    MutableTestCase secondTestCase = Iterables.get(plan.testCases(), 1);
    assertThat(secondTestCase.name()).isEqualTo("T2");
    assertThat(secondTestCase.testPlan()).isSameAs(plan);
  }
View Full Code Here


    assertThat(firstTestCase.name()).isEqualTo("T1");
    assertThat(firstTestCase.testPlan()).isSameAs(plan);

    MutableTestCase secondTestCase = Iterables.get(plan.testCases(), 1);
    assertThat(secondTestCase.name()).isEqualTo("T2");
    assertThat(secondTestCase.testPlan()).isSameAs(plan);
  }

  @Test
  public void should_find_test_case_by_name() {
    BeanGraph beanGraph = BeanGraph.createInMemory();
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.