Examples of testPlan()


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

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

    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

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

    when(testCase.status()).thenReturn(status);
    when(testCase.durationInMs()).thenReturn(durationInMs);

    TestPlan testPlan = mock(TestPlan.class);
    when(testPlan.component()).thenReturn(new ComponentDto().setKey(testPlanKey).setLongName(testPlanLongName));
    when(testCase.testPlan()).thenReturn(testPlan);
    return testCase;
  }

}
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.