Home
last modified time | relevance | path

Searched refs:tla (Results 1 – 25 of 70) sorted by relevance

123

/external/testng/src/test/java/test/methodselectors/
DCommandLineTest.java43 private TestListenerAdapter tla; field in CommandLineTest
48 tla = new TestListenerAdapter(); in setup()
55 TestNG.privateMain(ARG_WITHOUT_GROUPS, tla); in commandLineNegativePriorityAllGroups()
61 verifyTests("Passed", passed, tla.getPassedTests()); in commandLineNegativePriorityAllGroups()
62 verifyTests("Failed", failed, tla.getFailedTests()); in commandLineNegativePriorityAllGroups()
69 TestNG.privateMain(ARG_WITHOUT_GROUPS, tla); in commandLineNegativePriorityGroup2()
75 verifyTests("Passed", passed, tla.getPassedTests()); in commandLineNegativePriorityGroup2()
76 verifyTests("Failed", failed, tla.getFailedTests()); in commandLineNegativePriorityGroup2()
84 TestNG.privateMain(ARG_WITH_GROUPS, tla); in commandLineLessThanPriorityTest1Test()
90 verifyTests("Passed", passed, tla.getPassedTests()); in commandLineLessThanPriorityTest1Test()
[all …]
/external/testng/src/test/java/test/annotationtransformer/
DAnnotationTransformerTest.java40 TestListenerAdapter tla = new TestListenerAdapter(); in verifyAnnotationWithoutTransformer() local
41 tng.addListener(tla); in verifyAnnotationWithoutTransformer()
45 assertThat(tla.getPassedTests()).extracting(NAME_EXTRACTOR) in verifyAnnotationWithoutTransformer()
52 assertThat(tla.getFailedTests()).extracting(NAME_EXTRACTOR) in verifyAnnotationWithoutTransformer()
67 TestListenerAdapter tla = new TestListenerAdapter(); in verifyAnnotationTransformerMethod() local
68 tng.addListener(tla); in verifyAnnotationTransformerMethod()
74 assertThat(tla.getPassedTests()).extracting(NAME_EXTRACTOR) in verifyAnnotationTransformerMethod()
82 assertThat(tla.getFailedTests()).isEmpty(); in verifyAnnotationTransformerMethod()
134 TestListenerAdapter tla = new TestListenerAdapter(); in runTest() local
135 tng.addListener(tla); in runTest()
[all …]
/external/testng/src/test/java/test/configurationfailurepolicy/
DFailurePolicyTest.java45 TestListenerAdapter tla = new TestListenerAdapter(); in confFailureTest() local
49 testng.addListener(tla); in confFailureTest()
54 verify(tla, configurationFailures, configurationSkips, skippedTests); in confFailureTest()
62 TestListenerAdapter tla = new TestListenerAdapter(); in commandLineTest_policyAsSkip() local
63 TestNG.privateMain(argv, tla); in commandLineTest_policyAsSkip()
65 verify(tla, 1, 1, 2); in commandLineTest_policyAsSkip()
73 TestListenerAdapter tla = new TestListenerAdapter(); in commandLineTest_policyAsContinue() local
74 TestNG.privateMain(argv, tla); in commandLineTest_policyAsContinue()
76 verify(tla, 2, 0, 2); in commandLineTest_policyAsContinue()
83 TestListenerAdapter tla = new TestListenerAdapter(); in commandLineTestWithXMLFile_policyAsSkip() local
[all …]
/external/testng/src/test/java/test/mixed/
DMixedTest.java25 TestListenerAdapter tla = new TestListenerAdapter(); in mixedWithExcludedGroups() local
26 TestNG.privateMain(argv, tla); in mixedWithExcludedGroups()
28 …Assert.assertEquals(tla.getPassedTests().size(), 5); //2 from junit3test1, 2 from junit4test1, 0 f… in mixedWithExcludedGroups()
29 Assert.assertEquals(tla.getFailedTests().size(), 0); in mixedWithExcludedGroups()
41 TestListenerAdapter tla = new TestListenerAdapter(); in mixedClasses() local
42 TestNG.privateMain(argv, tla); in mixedClasses()
44 Assert.assertEquals(tla.getPassedTests().size(), 6); in mixedClasses()
45 Assert.assertEquals(tla.getFailedTests().size(), 0); in mixedClasses()
56 TestListenerAdapter tla = new TestListenerAdapter(); in mixedMethods() local
57 TestNG.privateMain(argv, tla); in mixedMethods()
[all …]
/external/testng/src/test/java/test/
DCommandLineTest.java31 TestListenerAdapter tla = new TestListenerAdapter(); in junitParsing() local
32 TestNG.privateMain(argv, tla); in junitParsing()
34 List<ITestResult> passed = tla.getPassedTests(); in junitParsing()
53 TestListenerAdapter tla = new TestListenerAdapter(); in junitParsing2() local
54 TestNG.privateMain(argv, tla); in junitParsing2()
56 List<ITestResult> passed = tla.getPassedTests(); in junitParsing2()
73 TestListenerAdapter tla = new TestListenerAdapter(); in suiteNameOverride() local
74 TestNG.privateMain(argv, tla); in suiteNameOverride()
76 List<ITestContext> contexts = tla.getTestContexts(); in suiteNameOverride()
96 TestListenerAdapter tla = new TestListenerAdapter(); in testNameOverride() local
[all …]
DReturnValueTest.java44 TestListenerAdapter tla = new TestListenerAdapter(); in runTest() local
45 tng.addListener(tla); in runTest()
49 Assert.assertEquals(tla.getFailedTests().size(), 0); in runTest()
50 Assert.assertEquals(tla.getSkippedTests().size(), 0); in runTest()
51 assertTestResultsEqual(tla.getPassedTests(), Arrays.asList("shouldRun")); in runTest()
53 Assert.assertEquals(tla.getFailedTests().size(), 0); in runTest()
54 Assert.assertEquals(tla.getPassedTests().size(), 0); in runTest()
55 Assert.assertEquals(tla.getSkippedTests().size(), 0); in runTest()
/external/testng/src/test/java/test/invocationcount/
DFailedInvocationCountTest.java17 TestListenerAdapter tla = new TestListenerAdapter(); in runTest() local
18 testng.addListener(tla); in runTest()
21 Assert.assertEquals(tla.getPassedTests().size(), passed); in runTest()
22 Assert.assertEquals(tla.getFailedTests().size(), failed); in runTest()
23 Assert.assertEquals(tla.getSkippedTests().size(), skipped); in runTest()
41 TestListenerAdapter tla = new TestListenerAdapter(); in verifyAttributeShouldStop() local
42 testng.addListener(tla); in verifyAttributeShouldStop()
45 Assert.assertEquals(tla.getPassedTests().size(), 8); in verifyAttributeShouldStop()
46 Assert.assertEquals(tla.getFailedTests().size(), 7); in verifyAttributeShouldStop()
47 Assert.assertEquals(tla.getSkippedTests().size(), 5); in verifyAttributeShouldStop()
/external/testng/src/test/java/test/sanitycheck/
DCheckTestNamesTest.java36 TestListenerAdapter tla = new TestListenerAdapter(); in runSuite() local
42 tng.addListener(tla); in runSuite()
46 Assert.assertEquals(tla.getPassedTests().size(), 0); in runSuite()
47 Assert.assertEquals(tla.getFailedTests().size(), 0); in runSuite()
57 TestListenerAdapter tla = new TestListenerAdapter(); in checkNoError() local
61 tng.addListener(tla); in checkNoError()
63 Assert.assertEquals(tla.getPassedTests().size(), 2); in checkNoError()
71 TestListenerAdapter tla = new TestListenerAdapter(); in checkNoErrorWtihChildSuites() local
75 tng.addListener(tla); in checkNoErrorWtihChildSuites()
77 Assert.assertEquals(tla.getPassedTests().size(), 4); in checkNoErrorWtihChildSuites()
DCheckSuiteNamesTest.java24 TestListenerAdapter tla = new TestListenerAdapter(); in checkChildSuites() local
28 tng.addListener(tla); in checkChildSuites()
30 Assert.assertEquals(tla.getPassedTests().size(), 4); in checkChildSuites()
38 TestListenerAdapter tla = new TestListenerAdapter(); in checkChildSuitesFails() local
42 tng.addListener(tla); in checkChildSuitesFails()
44 Assert.assertEquals(tla.getTestContexts().get(0).getSuite().getName(), "SanityCheck suites"); in checkChildSuitesFails()
45 Assert.assertEquals(tla.getTestContexts().get(1).getSuite().getName(), "SanityCheck suites"); in checkChildSuitesFails()
46 … Assert.assertEquals(tla.getTestContexts().get(2).getSuite().getName(), "SanityCheck suites (0)"); in checkChildSuitesFails()
47 … Assert.assertEquals(tla.getTestContexts().get(3).getSuite().getName(), "SanityCheck suites (0)"); in checkChildSuitesFails()
/external/testng/src/test/java/test/jarpackages/
DJarPackagesTest.java30 TestListenerAdapter tla = init("withtestngxml.jar"); in jarWithTestngXml() local
31 Assert.assertEquals(tla.getPassedTests().size(), 2); in jarWithTestngXml()
32 String first = tla.getPassedTests().get(0).getName(); in jarWithTestngXml()
33 String second = tla.getPassedTests().get(1).getName(); in jarWithTestngXml()
41 TestListenerAdapter tla = init("withouttestngxml.jar"); in jarWithoutTestngXml() local
42 Assert.assertEquals(tla.getPassedTests().size(), 2); in jarWithoutTestngXml()
43 String first = tla.getPassedTests().get(0).getName(); in jarWithoutTestngXml()
44 String second = tla.getPassedTests().get(1).getName(); in jarWithoutTestngXml()
/external/testng/src/test/java/test/methodinterceptors/multipleinterceptors/
DMultipleInterceptorsTest.java20 TestListenerAdapter tla = new TestListenerAdapter(); in testMultipleInterceptors() local
21 tng.addListener(tla); in testMultipleInterceptors()
23 Assert.assertEquals(tla.getPassedTests().size(), 1); in testMultipleInterceptors()
24 Assert.assertEquals(tla.getPassedTests().get(0).getName(), "d"); in testMultipleInterceptors()
32 TestListenerAdapter tla = new TestListenerAdapter(); in testMultipleInterceptorsWithPreserveOrder() local
33 tng.addListener(tla); in testMultipleInterceptorsWithPreserveOrder()
35 Assert.assertEquals(tla.getPassedTests().get(0).getMethod().getDescription(), "abc"); in testMultipleInterceptorsWithPreserveOrder()
/external/testng/src/test/java/test/methodinterceptors/
DMethodInterceptorTest.java50 TestListenerAdapter tla = new TestListenerAdapter(); in testNullInterceptor() local
51 tng.addListener(tla); in testNullInterceptor()
54 Assert.assertEquals(tla.getPassedTests().size(), 0); in testNullInterceptor()
55 Assert.assertEquals(tla.getFailedTests().size(), 0); in testNullInterceptor()
56 Assert.assertEquals(tla.getSkippedTests().size(), 0); in testNullInterceptor()
65 TestListenerAdapter tla = new TestListenerAdapter(); in testFast() local
67 tng.addListener(tla); in testFast()
70 Assert.assertEquals(tla.getPassedTests().size(), 3); in testFast()
71 ITestResult first = tla.getPassedTests().get(0); in testFast()
/external/testng/src/test/java/test/alwaysrun/
DAlwaysRunTest.java16 TestListenerAdapter tla = new TestListenerAdapter(); in withAlwaysRunAfter() local
20 testng.addListener(tla); in withAlwaysRunAfter()
27 TestListenerAdapter tla = new TestListenerAdapter(); in withoutAlwaysRunAfter() local
31 testng.addListener(tla); in withoutAlwaysRunAfter()
38 TestListenerAdapter tla = new TestListenerAdapter(); in withoutAlwaysRunBefore() local
43 testng.addListener(tla); in withoutAlwaysRunBefore()
/external/testng/src/test/java/test/testng173/
DTestNG173Test.java31 TestListenerAdapter tla = new TestListenerAdapter(); in orderShouldBePreservedInMethodsWithSameNameAndInDifferentClasses() local
32 tng.addListener(tla); in orderShouldBePreservedInMethodsWithSameNameAndInDifferentClasses()
39 verifyPassedTests(tla, "test1", "test2", "testX", "test2", "test1"); in orderShouldBePreservedInMethodsWithSameNameAndInDifferentClasses()
55 TestListenerAdapter tla = new TestListenerAdapter(); in orderShouldBePreservedInMethodsWithSameNameAndInDifferentClassesAndDifferentPackage() local
56 tng.addListener(tla); in orderShouldBePreservedInMethodsWithSameNameAndInDifferentClassesAndDifferentPackage()
62 verifyPassedTests(tla, "test1", "test2", "testX", "test2", "test1"); in orderShouldBePreservedInMethodsWithSameNameAndInDifferentClassesAndDifferentPackage()
/external/testng/src/test/java/test/parameters/
DParamInheritanceTest.java23 TestListenerAdapter tla = new TestListenerAdapter(); in noNPEInCountingResults() local
27 tng.addListener(tla); in noNPEInCountingResults()
39 Assert.assertEquals(tla.getPassedTests().size(), 1); in noNPEInCountingResults()
55 TestListenerAdapter tla = new TestListenerAdapter(); in parameterInheritanceAndOverriding() local
59 tng.addListener(tla); in parameterInheritanceAndOverriding()
61 Assert.assertEquals(tla.getPassedTests().size(), 3); in parameterInheritanceAndOverriding()
/external/testng/src/test/java/test/skipex/
DSkipAndExpectedTest.java15 TestListenerAdapter tla = new TestListenerAdapter(); in shouldSkip() local
16 tng.addListener(tla); in shouldSkip()
19 Assert.assertEquals(tla.getPassedTests().size(), 0); in shouldSkip()
20 Assert.assertEquals(tla.getSkippedTests().size(), 1); in shouldSkip()
21 Assert.assertEquals(tla.getFailedTests().size(), 0); in shouldSkip()
/external/testng/src/test/java/test/inheritance/testng234/
DPolymorphicFailureTest.java17 TestListenerAdapter tla = new TestListenerAdapter(); in superclassFailureShouldCauseFailure() local
18 tng.addListener(tla); in superclassFailureShouldCauseFailure()
21 assertTestResultsEqual(tla.getSkippedTests(), Arrays.asList( in superclassFailureShouldCauseFailure()
25 Assert.assertEquals(0, tla.getPassedTests().size()); in superclassFailureShouldCauseFailure()
26 Assert.assertEquals(0, tla.getFailedTests().size()); in superclassFailureShouldCauseFailure()
/external/testng/src/test/java/test/timeout/
DTimeOutIntegrationTest.java17 TestListenerAdapter tla = new TestListenerAdapter(); in testTimeOutWhenParallelIsTest() local
18 tng.addListener(tla); in testTimeOutWhenParallelIsTest()
22 Assert.assertEquals(tla.getFailedTests().size(), 1); in testTimeOutWhenParallelIsTest()
23 Assert.assertEquals(tla.getSkippedTests().size(), 0); in testTimeOutWhenParallelIsTest()
24 Assert.assertEquals(tla.getPassedTests().size(), 0); in testTimeOutWhenParallelIsTest()
/external/testng/src/test/java/test/testnames/
DTestNamesTest.java15 TestListenerAdapter tla = new TestListenerAdapter(); in checkWithoutChildSuites() local
19 tng.addListener(tla); in checkWithoutChildSuites()
21 Assert.assertEquals(tla.getFailedTests().size(), 0); in checkWithoutChildSuites()
22 Assert.assertEquals(tla.getPassedTests().size(), 1); in checkWithoutChildSuites()
23 … Assert.assertEquals(tla.getPassedTests().get(0).getMethod().getMethodName(), "sampleOutputTest2"); in checkWithoutChildSuites()
/external/testng/src/test/java/test/retryAnalyzer/
DRetryAnalyzerTest.java20 TestListenerAdapter tla = new TestListenerAdapter(); in testInvocationCounts() local
21 tng.addListener(tla); in testInvocationCounts()
28 assertTrue(tla.getFailedTests().isEmpty()); in testInvocationCounts()
30 List<ITestResult> fsp = tla.getFailedButWithinSuccessPercentageTests(); in testInvocationCounts()
34 List<ITestResult> skipped = tla.getSkippedTests(); in testInvocationCounts()
/external/testng/src/test/java/test/thread/
DParallelSuiteTest.java32 TestListenerAdapter tla = new TestListenerAdapter(); in suitesShouldRunInParallel3() local
36 tng.addListener(tla); in suitesShouldRunInParallel3()
45 TestListenerAdapter tla = new TestListenerAdapter(); in runTest() local
49 tng.addListener(tla); in runTest()
87 TestListenerAdapter tla = new TestListenerAdapter(); in suitesShouldRunInOrder() local
90 tng.addListener(tla); in suitesShouldRunInOrder()
DThreadPoolSizeWithTimeOutTest.java24 TestListenerAdapter tla = new TestListenerAdapter(); in threadPoolAndTimeOutShouldFail() local
25 tng.addListener(tla); in threadPoolAndTimeOutShouldFail()
28 Assert.assertEquals(0, tla.getPassedTests().size()); in threadPoolAndTimeOutShouldFail()
29 Assert.assertEquals(1, tla.getFailedTests().size()); in threadPoolAndTimeOutShouldFail()
/external/testng/src/test/java/test/regression/
DBeforeTestFailingTest.java15 TestListenerAdapter tla = new TestListenerAdapter(); in beforeTestFailingShouldCauseSkips() local
16 tng.addListener(tla); in beforeTestFailingShouldCauseSkips()
19 Assert.assertEquals(tla.getSkippedTests().size(), 1); in beforeTestFailingShouldCauseSkips()
20 Assert.assertEquals(tla.getPassedTests().size(), 0); in beforeTestFailingShouldCauseSkips()
/external/testng/src/test/java/test/factory/
DDisabledFactoryTest.java15 TestListenerAdapter tla = new TestListenerAdapter(); in disabledFactoryShouldNotRun() local
18 Assert.assertEquals(tla.getPassedTests().size(), 0); in disabledFactoryShouldNotRun()
19 Assert.assertEquals(tla.getSkippedTests().size(), 0); in disabledFactoryShouldNotRun()
20 Assert.assertEquals(tla.getFailedTests().size(), 0); in disabledFactoryShouldNotRun()
/external/testng/src/test/java/test/dataprovider/
DFailingIterableDataProviderTest.java18 TestListenerAdapter tla = new TestListenerAdapter(); in failingDataProvider() local
19 testng.addListener(tla); in failingDataProvider()
26 Assert.assertEquals(tla.getFailedTests().size(), 1, in failingDataProvider()
28 Assert.assertEquals(tla.getPassedTests().size(), 5, in failingDataProvider()

123