Methods Summary |
---|
public void | testCreateTestForTestCase()
Test test = TestCaseUtil.createTestSuite(OneTestTestCase.class);
assertEquals(1, test.countTestCases());
|
public void | testCreateTestForTestCaseWithSuiteMethod()
Test test = TestCaseUtil.createTestSuite(OneTestTestCaseWithSuite.class);
assertEquals(1, test.countTestCases());
|
public void | testCreateTestForTestSuiteWithSuiteMethod()
Test test = TestCaseUtil.createTestSuite(TwoTestsInTestSuite.class);
assertEquals(2, test.countTestCases());
|
public void | testGetTestCaseNamesForTestCaseWithSuiteMethod()
TestCase testCase = new OneTestTestCaseWithSuite();
List<String> testCaseNames = TestCaseUtil.getTestCaseNames(testCase, false);
assertEquals(1, testCaseNames.size());
assertTrue(testCaseNames.get(0).endsWith("testOne"));
|
public void | testGetTestCaseNamesForTestSuiteWithSuiteMethod()
TestSuite testSuite = new TwoTestsInTestSuite();
List<String> testCaseNames = TestCaseUtil.getTestCaseNames(testSuite, false);
assertEquals(2, testCaseNames.size());
assertTrue(testCaseNames.get(0).endsWith("OneTestTestCase"));
assertTrue(testCaseNames.get(1).endsWith("OneTestTestSuite"));
|
public void | testReturnEmptyStringForTestSuiteWithNoName()
assertEquals("", TestCaseUtil.getTestName(new TestSuite()));
|