Home
last modified time | relevance | path

Searched refs:testMethod (Results 1 – 25 of 69) sorted by relevance

123

/external/testng/src/main/java/org/testng/internal/
DInvoker.java727 void collectResults(ITestNGMethod testMethod, Collection<ITestResult> results) { in collectResults() argument
732 m_notifier.addPassedTest(testMethod, result); in collectResults()
735 m_notifier.addSkippedTest(testMethod, result); in collectResults()
738 m_notifier.addFailedTest(testMethod, result); in collectResults()
741 m_notifier.addFailedButWithinSuccessPercentageTest(testMethod, result); in collectResults()
974 private ParameterBag createParameters(ITestNGMethod testMethod, in createParameters() argument
986 instance = testMethod.getInstance(); in createParameters()
989 ParameterBag bag = handleParameters(testMethod, in createParameters()
1012 public List<ITestResult> invokeTestMethods(ITestNGMethod testMethod, in invokeTestMethods() argument
1020 assert null != testMethod.getTestClass() in invokeTestMethods()
[all …]
DTestMethodWorker.java105 ITestNGMethod testMethod = testMthdInst.getMethod(); in run() local
106 ITestClass testClass = testMethod.getTestClass(); in run()
112 invokeTestMethods(testMethod, testMthdInst.getInstance(), m_testContext); in run()
295 MethodInstance testMethod, in SingleTestMethodWorker() argument
302 new MethodInstance[] {testMethod}, in SingleTestMethodWorker()
DParameters.java403 public static ParameterHolder handleParameters(ITestNGMethod testMethod, in handleParameters() argument
419 findDataProvider(instance, testMethod.getTestClass(), in handleParameters()
420 testMethod.getConstructorOrMethod(), annotationFinder, methodParams.context); in handleParameters()
423 int parameterCount = testMethod.getConstructorOrMethod().getParameterTypes().length; in handleParameters()
433 testMethod, in handleParameters()
439 testMethod.getInvocationNumbers()); in handleParameters()
451 allParameterValuesArray[0] = createParameters(testMethod.getMethod(), in handleParameters()
457 testMethod.setParameterInvocationCount(allParameterValuesArray.length); in handleParameters()
/external/junit/src/main/java/org/junit/internal/runners/
DMethodRoadie.java30 private TestMethod testMethod; field in MethodRoadie
36 testMethod = method; in MethodRoadie()
40 if (testMethod.isIgnored()) { in run()
46 long timeout = testMethod.getTimeout(); in run()
108 testMethod.invoke(test); in runTestMethod()
109 if (testMethod.expectsException()) { in runTestMethod()
110 …addFailure(new AssertionError("Expected exception: " + testMethod.getExpectedException().getName()… in runTestMethod()
116 } else if (!testMethod.expectsException()) { in runTestMethod()
118 } else if (testMethod.isUnexpected(actual)) { in runTestMethod()
119 …String message = "Unexpected exception, expected<" + testMethod.getExpectedException().getName() +… in runTestMethod()
[all …]
/external/testng/src/test/java/test/annotationtransformer/
DMyParamTransformer.java15 Constructor testConstructor, Method testMethod) { in transform() argument
16 if (!onlyOneNonNull(testClass, testConstructor, testMethod)) { in transform()
21 …ic static boolean onlyOneNonNull(Class testClass, Constructor testConstructor, Method testMethod) { in onlyOneNonNull() argument
22 return ((testClass != null && testConstructor == null && testMethod == null) || in onlyOneNonNull()
23 (testClass == null && testConstructor != null && testMethod == null) || in onlyOneNonNull()
24 (testClass == null && testConstructor == null && testMethod != null) ); in onlyOneNonNull()
DMyTransformer.java17 Constructor testConstructor, Method testMethod) { in transform() argument
19 if (testMethod != null) { in transform()
20 switch (testMethod.getName()) { in transform()
31 methodNames.add(testMethod.getName()); in transform()
DFactoryTransformer.java16 Constructor testConstructor, Method testMethod) in transform() argument
21 public void transform(IDataProviderAnnotation annotation, Method testMethod) { in transform() argument
26 Constructor testConstructor, Method testMethod) in transform() argument
31 public void transform(IFactoryAnnotation annotation, Method testMethod) { in transform() argument
DDataProviderTransformer.java16 Constructor testConstructor, Method testMethod) in transform() argument
21 public void transform(IDataProviderAnnotation annotation, Method testMethod) { in transform() argument
27 Constructor testConstructor, Method testMethod) in transform() argument
32 public void transform(IFactoryAnnotation annotation, Method testMethod) { in transform() argument
DConfigurationTransformer.java16 Constructor testConstructor, Method testMethod) in transform() argument
22 Constructor testConstructor, Method testMethod) in transform() argument
30 public void transform(IDataProviderAnnotation annotation, Method testMethod) { in transform() argument
34 public void transform(IFactoryAnnotation annotation, Method testMethod) { in transform() argument
DAnnotationTransformerInvocationCountTest.java22 Constructor testConstructor, Method testMethod) { in transform() argument
23 if ("concurrencyTest".equals(testMethod.getName())) { in transform()
/external/junit-params/src/main/java/junitparams/internal/
DInvokeNonParameterisedMethod.java11 private final FrameworkMethod testMethod; field in InvokeNonParameterisedMethod
14 InvokeNonParameterisedMethod(FrameworkMethod testMethod, Object testClass) { in InvokeNonParameterisedMethod() argument
15 this.testMethod = testMethod; in InvokeNonParameterisedMethod()
21 testMethod.invokeExplosively(testClass); in evaluate()
DInvokeParameterisedMethod.java23 private final FrameworkMethod testMethod; field in InvokeParameterisedMethod
26 public InvokeParameterisedMethod(FrameworkMethod testMethod, Object testClass, Object params) { in InvokeParameterisedMethod() argument
27 this.testMethod = testMethod; in InvokeParameterisedMethod()
71 if (testMethod.getMethod().getParameterTypes()[0].isArray()) { in createObjectOfExpectedTypeBasedOnParams()
77 …resultParam = testMethod.getMethod().getParameterTypes()[0].getConstructor(typesOfParameters).newI… in createObjectOfExpectedTypeBasedOnParams()
80 …throw new IllegalStateException("While trying to create object of class " + testMethod.getMethod()… in createObjectOfExpectedTypeBasedOnParams()
95 Class<?>[] expectedParameterTypes = testMethod.getMethod().getParameterTypes(); in castParamsUsingConverters()
101 Annotation[][] parameterAnnotations = testMethod.getMethod().getParameterAnnotations(); in castParamsUsingConverters()
215 + testMethod.getName() + " method."); in verifySameSizeOfArrays()
220 testMethod.invokeExplosively(testClass, params == null ? new Object[]{params} : params); in evaluate()
DTestMethod.java51 TestMethod testMethod = new TestMethod(frameworkMethod, testClass); in listFrom() local
52 methods.add(testMethod.describableFrameworkMethod()); in listFrom()
70 private boolean hasTheSameNameAsFrameworkMethod(TestMethod testMethod) { in hasTheSameNameAsFrameworkMethod() argument
71 return frameworkMethod.getName().equals(testMethod.frameworkMethod.getName()); in hasTheSameNameAsFrameworkMethod()
74 private boolean hasTheSameParameterTypesAsFrameworkMethod(TestMethod testMethod) { in hasTheSameParameterTypesAsFrameworkMethod() argument
76 … Class<?>[] testMethodParameterTypes = testMethod.frameworkMethod.getMethod().getParameterTypes(); in hasTheSameParameterTypesAsFrameworkMethod()
/external/junit/src/main/java/org/junit/internal/runners/statements/
DInvokeMethod.java7 private final FrameworkMethod testMethod; field in InvokeMethod
10 public InvokeMethod(FrameworkMethod testMethod, Object target) { in InvokeMethod() argument
11 this.testMethod = testMethod; in InvokeMethod()
17 testMethod.invokeExplosively(target); in evaluate()
/external/junit/src/main/java/org/junit/experimental/theories/
DTheories.java171 private final FrameworkMethod testMethod; field in Theories.TheoryAnchor
176 public TheoryAnchor(FrameworkMethod testMethod, TestClass testClass) { in TheoryAnchor() argument
177 this.testMethod = testMethod; in TheoryAnchor()
188 testMethod.getMethod(), getTestClass())); in evaluate()
191 boolean hasTheoryAnnotation = testMethod.getAnnotation(Theory.class) != null; in evaluate()
260 }.methodBlock(testMethod).evaluate(); in runWithCompleteAssignment()
288 throw new ParameterizedAssertionError(e, testMethod.getName(),
293 Theory annotation = testMethod.getMethod().getAnnotation(
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/
DOptionalMethodTest.java36 public String testMethod(String arg) { in testMethod() method in OptionalMethodTest.DefaultClass
42 public abstract String testMethod(String arg); in testMethod() method in OptionalMethodTest.PublicParent
47 public String testMethod(String arg) { in testMethod() method in OptionalMethodTest.PrivateImpl
53 public String testMethod(String arg) { in testMethod() method in OptionalMethodTest.PrivateClass
/external/junit-params/src/test/java/junitparams/
DParametersReaderProvidersTest.java36 TestMethod testMethod = getTestMethodWithInvalidProvider(); in shouldPutProviderClassNameInExceptionMessageForProviderWithNoValidMethods() local
40 testMethod.parametersSets(); in shouldPutProviderClassNameInExceptionMessageForProviderWithNoValidMethods()
46 Method testMethod = TestClassWithProviderClassWithNoValidMethods.class in getTestMethodWithInvalidProvider() local
48 …return new TestMethod(new FrameworkMethod(testMethod), new TestClass(TestClassWithProviderClassWit… in getTestMethodWithInvalidProvider()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/
DRedefineClassesDebuggee.java42 + RedefineClass_Debuggee.testMethod()); in run()
46 String testMethodResult = RedefineClass_Debuggee.testMethod(); in run()
62 static String testMethod() { in testMethod() method in RedefineClass_Debuggee
/external/icu/icu4j/perf-tests/
Dnormperf.pl142 my $testMethod = $methodPair->[0];
146 print HTML "<P><B>$testMethod vs. $baselineMethod</B></P>\n";
149 print HTML "<TR><TD>Options</TD><TD>$testMethod</TD>";
161 print "\n$testMethod [@$pat]\n";
162 my $t = measure2($testMethod, $pat, -$DURATION);
Ddateformatperf.pl93 my $testMethod = $methodPair->[0];
97 print HTML "<P><B>$testMethod vs. $baselineMethod</B></P>\n";
100 print HTML "<TR><TD>Options</TD><TD>$testMethod</TD>";
112 print "\n$testMethod [@$pat]\n";
113 my $t = measure2($testMethod, $pat, -$DURATION);
Ducharacterperf.pl90 my $testMethod = $methodPair->[0];
94 print HTML "<P><B>$testMethod vs. $baselineMethod</B></P>\n";
97 print HTML "<TR><TD>Pattern</TD><TD>$testMethod</TD>";
109 print "\n$testMethod $pat\n";
110 my $t = measure2($testMethod, $pat, -$DURATION);
Dconverterperf.pl106 my $testMethod = $methodPair->[0];
110 print HTML "<P><B>$testMethod vs. $baselineMethod</B></P>\n";
113 print HTML "<TR><TD>Options</TD><TD>$testMethod</TD>";
125 print "\n$testMethod [@$pat]\n";
126 my $t = measure2($testMethod, $pat, -$DURATION);
Ddecimalformatperf.pl89 my $testMethod = $methodPair->[0];
93 print HTML "<P><B>$testMethod vs. $baselineMethod</B></P>\n";
96 print HTML "<TR><TD>Options</TD><TD>$testMethod</TD>";
107 print "\n$testMethod [@$pat]\n";
108 my $t = measure2($testMethod, $pat, -$DURATION);
Dunicodesetperf.pl80 my $testMethod = $methodPair->[0];
84 print HTML "<P><B>$testMethod vs. $baselineMethod</B></P>\n";
87 print HTML "<TR><TD>Pattern</TD><TD>$testMethod</TD>";
99 print "\n$testMethod $pat\n";
100 my $t = measure2($testMethod, $pat, -$DURATION);
/external/testng/src/main/java/org/testng/internal/annotations/
DJDK15AnnotationFinder.java138 Constructor<?> testConstructor, Method testMethod) { in transform() argument
143 m_transformer.transform((ITestAnnotation) a, testClass, testConstructor, testMethod); in transform() local
154 transformer2.transform(configuration,testClass, testConstructor, testMethod); in transform()
161 transformer2.transform((IDataProviderAnnotation) a, testMethod); in transform() local
168 transformer2.transform((IFactoryAnnotation) a, testMethod); in transform() local
210 Constructor<?> testConstructor, Method testMethod, Pair<Annotation, ?> p) { in findAnnotation() argument
219 transform(result, testClass, testConstructor, testMethod); in findAnnotation()

123