/external/vogar/test/vogar/target/junit4/ |
D | TestRunnerJUnit4Test.java | 32 @TestRunnerProperties(testClass = ChangeDefaultLocaleTest.class) 46 @TestRunnerProperties(testClass = SimpleTest2.class) 59 @TestRunnerProperties(testClass = SimpleTest2.class) 62 Class<?> testClass = testRunnerRule.testClass(); in testRunner_SkipPast() local 63 String failingTestName = testClass.getName() + "#simple1"; in testRunner_SkipPast() 73 @TestRunnerProperties(testClass = SimpleTest2.class) 76 Class<?> testClass = testRunnerRule.testClass(); in testRunner_SkipPastAll() local 77 String failingTestName = testClass.getName() + "#other"; in testRunner_SkipPastAll() 84 @TestRunnerProperties(testClass = SimpleTest2.class) 96 @TestRunnerProperties(testClass = SimpleTest2.class) [all …]
|
/external/vogar/test/vogar/target/junit3/ |
D | TestRunnerJUnit3Test.java | 35 @TestRunnerProperties(testClass = JUnit3Test.class, runnerType = RunnerType.JUNIT) 46 @TestRunnerProperties(testClass = ChangeDefaultLocaleTest.class) 60 @TestRunnerProperties(testClass = SimpleTest2.class) 73 @TestRunnerProperties(testClass = SimpleTest2.class) 76 Class<?> testClass = testRunnerRule.testClass(); in testRunner_SkipPast() local 77 String failingTestName = testClass.getName() + "#testSimple2"; in testRunner_SkipPast() 86 @TestRunnerProperties(testClass = SimpleTest2.class) 89 Class<?> testClass = testRunnerRule.testClass(); in testRunner_SkipPastAll() local 90 String failingTestName = testClass.getName() + "#other"; in testRunner_SkipPastAll() 98 @TestRunnerProperties(testClass = SimpleTest2.class) [all …]
|
/external/robolectric-shadows/processor/src/test/java/org/robolectric/annotation/processing/validator/ |
D | RealObjectValidatorTest.java | 21 …final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectWithoutImp… in realObjectWithoutImplements_shouldNotCompile() local 23 .that(testClass) in realObjectWithoutImplements_shouldNotCompile() 31 …final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectParameteri… in realObjectParameterizedMissingParameters_shouldNotCompile() local 33 .that(testClass) in realObjectParameterizedMissingParameters_shouldNotCompile() 41 …final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectParameteri… in realObjectParameterizedMismatch_shouldNotCompile() local 43 .that(testClass) in realObjectParameterizedMismatch_shouldNotCompile() 51 …final String testClass = "org.robolectric.annotation.processing.shadows.ShadowRealObjectWithEmptyI… in realObjectWithEmptyImplements_shouldNotRaiseOwnError() local 53 .that(testClass) in realObjectWithEmptyImplements_shouldNotRaiseOwnError() 60 final String testClass = in realObjectWithEmptyClassName_shouldNotRaiseOwnError() local 63 .that(testClass) in realObjectWithEmptyClassName_shouldNotRaiseOwnError() [all …]
|
D | ImplementsValidatorTest.java | 17 …final String testClass = "org.robolectric.annotation.processing.shadows.ShadowImplementsWithoutCla… in implementsWithoutClassOrClassName_shouldNotCompile() local 19 .that(testClass) in implementsWithoutClassOrClassName_shouldNotCompile() 27 final String testClass = in value_withUnresolvableClassNameAndOldMaxSdk_shouldNotCompile() local 30 .that(testClass) in value_withUnresolvableClassNameAndOldMaxSdk_shouldNotCompile() 36 …final String testClass = "org.robolectric.annotation.processing.shadows.ShadowImplementsDummyWithO… in value_withClassName_shouldNotCompile() local 38 .that(testClass) in value_withClassName_shouldNotCompile() 46 …final String testClass = "org.robolectric.annotation.processing.shadows.ShadowImplementsWithParame… in implementsWithParameterMismatch_shouldNotCompile() local 48 .that(testClass) in implementsWithParameterMismatch_shouldNotCompile() 56 …final String testClass = "org.robolectric.annotation.processing.shadows.ShadowImplementsWithMissin… in implementsWithMissingParameters_shouldNotCompile() local 58 .that(testClass) in implementsWithMissingParameters_shouldNotCompile() [all …]
|
D | ResetterValidatorTest.java | 15 …final String testClass = "org.robolectric.annotation.processing.shadows.ShadowResetterWithoutImple… in resetterWithoutImplements_shouldNotCompile() local 17 .that(testClass) in resetterWithoutImplements_shouldNotCompile() 25 … final String testClass = "org.robolectric.annotation.processing.shadows.ShadowResetterNonStatic"; in nonStaticResetter_shouldNotCompile() local 27 .that(testClass) in nonStaticResetter_shouldNotCompile() 35 … final String testClass = "org.robolectric.annotation.processing.shadows.ShadowResetterNonPublic"; in nonPublicResetter_shouldNotCompile() local 37 .that(testClass) in nonPublicResetter_shouldNotCompile() 45 …final String testClass = "org.robolectric.annotation.processing.shadows.ShadowResetterWithParamete… in resetterWithParameters_shouldNotCompile() local 47 .that(testClass) in resetterWithParameters_shouldNotCompile() 55 final String testClass = "org.robolectric.annotation.processing.shadows.ShadowDummy"; in goodResetter_shouldCompile() local 57 .that(testClass) in goodResetter_shouldCompile()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/builders/ |
D | NodeWithAnnotationsBuildersTest.java | 37 private ClassOrInterfaceDeclaration testClass = cu.addClass("testClass"); ; field in NodeWithAnnotationsBuildersTest 45 NormalAnnotationExpr annotation = testClass.addAndGetAnnotation(hey.class); in testAddAnnotation() 47 assertEquals(1, testClass.getAnnotations().size()); in testAddAnnotation() 48 assertEquals(annotation, testClass.getAnnotation(0)); in testAddAnnotation() 49 assertEquals(NormalAnnotationExpr.class, testClass.getAnnotation(0).getClass()); in testAddAnnotation() 54 testClass.addMarkerAnnotation("test"); in testAddMarkerAnnotation() 55 assertEquals(1, testClass.getAnnotations().size()); in testAddMarkerAnnotation() 60 testClass.addSingleMemberAnnotation("test", "value"); in testAddSingleMemberAnnotation() 61 assertEquals(1, testClass.getAnnotations().size()); in testAddSingleMemberAnnotation() 62 …assertEquals("value", testClass.getAnnotation(0).asSingleMemberAnnotationExpr().getMemberValue().t… in testAddSingleMemberAnnotation() [all …]
|
D | ClassOrInterfaceDeclarationBuildersTest.java | 51 ClassOrInterfaceDeclaration testClass = cu.addClass("test"); in testAddExtends() local 52 testClass.addExtendedType(List.class); in testAddExtends() 56 assertEquals(1, testClass.getExtendedTypes().size()); in testAddExtends() 57 assertEquals(List.class.getSimpleName(), testClass.getExtendedTypes(0).getNameAsString()); in testAddExtends() 62 ClassOrInterfaceDeclaration testClass = cu.addClass("test"); in testAddImplements() local 63 testClass.addImplementedType(Function.class); in testAddImplements() 67 assertEquals(1, testClass.getImplementedTypes().size()); in testAddImplements() 68 … assertEquals(Function.class.getSimpleName(), testClass.getImplementedTypes(0).getNameAsString()); in testAddImplements()
|
D | FieldDeclarationBuildersTest.java | 39 private ClassOrInterfaceDeclaration testClass = cu.addClass("testClass"); field in FieldDeclarationBuildersTest 54 testClass.addPrivateField(int.class, "myField").createGetter(); in testCreateGetterInAClass() 55 assertEquals(2, testClass.getMembers().size()); in testCreateGetterInAClass() 56 assertEquals(MethodDeclaration.class, testClass.getMember(1).getClass()); in testCreateGetterInAClass() 57 List<MethodDeclaration> methodsWithName = testClass.getMethodsByName("getMyField"); in testCreateGetterInAClass() 67 testClass.addPrivateField(int.class, "myField").createSetter(); in testCreateSetterInAClass() 68 assertEquals(2, testClass.getMembers().size()); in testCreateSetterInAClass() 69 assertEquals(MethodDeclaration.class, testClass.getMember(1).getClass()); in testCreateSetterInAClass() 70 List<MethodDeclaration> methodsWithName = testClass.getMethodsByName("setMyField"); in testCreateSetterInAClass() 108 FieldDeclaration myPrivateField = testClass.addPrivateField(int.class, "myField"); in testCreateGetterWithANonValidField() [all …]
|
/external/vogar/src/vogar/target/junit/junit3/ |
D | TestCaseRunnerFactory.java | 75 Class<? extends TestCase> testClass, String methodName, Annotation[] annotations) { in createTest() argument 76 return new RunTestCaseStatement(testClass, methodName, annotations); in createTest() 81 Class<? extends Test> testClass, String name, Throwable throwable) { in createFailingTest() argument 83 testClass, name, testClass.getAnnotations()); in createFailingTest() 89 Class<? extends TestCase> testClass, List<DescribableStatement> tests) { in createSuite() argument 92 return new ParentStatementRunner(testClass, tests, runnerParams); in createSuite() 95 testClass, "initializationError", testClass.getAnnotations()); in createSuite() 106 private static TestCase createTestCase(Class<? extends TestCase> testClass, String name) in createTestCase() argument 110 constructor = testClass.getConstructor(String.class); in createTestCase() 112 constructor = testClass.getConstructor(); in createTestCase() [all …]
|
D | TestCaseTransformer.java | 54 public S createSuite(Class<? extends TestCase> testClass) { in createSuite() argument 55 List<T> tests = testsFromTestCase(testClass); in createSuite() 56 return factory.createSuite(testClass, tests); in createSuite() 60 Class<? extends TestCase> testClass, String methodName, Annotation[] annotations) { in createTest() argument 61 return factory.createTest(testClass, methodName, annotations); in createTest() 64 private T createWarning(Class<? extends Test> testClass, String name, Throwable throwable) { in createWarning() argument 65 return factory.createFailingTest(testClass, name, throwable); in createWarning() 68 private List<T> testsFromTestCase(final Class<? extends TestCase> testClass) { in testsFromTestCase() argument 75 validateTestClass(testClass); in testsFromTestCase() 77 tests.add(createWarning(testClass, "warning", e)); in testsFromTestCase() [all …]
|
/external/testng/src/main/java/org/testng/internal/ |
D | NoOpTestClass.java | 37 public NoOpTestClass(ITestClass testClass) { in NoOpTestClass() argument 38 m_testClass= testClass.getRealClass(); in NoOpTestClass() 39 m_beforeSuiteMethods= testClass.getBeforeSuiteMethods(); in NoOpTestClass() 40 m_beforeTestConfMethods= testClass.getBeforeTestConfigurationMethods(); in NoOpTestClass() 41 m_beforeGroupsMethods= testClass.getBeforeGroupsMethods(); in NoOpTestClass() 42 m_beforeClassMethods= testClass.getBeforeClassMethods(); in NoOpTestClass() 43 m_beforeTestMethods= testClass.getBeforeTestMethods(); in NoOpTestClass() 44 m_afterSuiteMethods= testClass.getAfterSuiteMethods(); in NoOpTestClass() 45 m_afterTestConfMethods= testClass.getAfterTestConfigurationMethods(); in NoOpTestClass() 46 m_afterGroupsMethods= testClass.getAfterGroupsMethods(); in NoOpTestClass() [all …]
|
D | TestMethodWorker.java | 106 ITestClass testClass = testMethod.getTestClass(); in run() local 108 invokeBeforeClassMethods(testClass, testMthdInst); in run() 115 invokeAfterClassMethods(testClass, testMthdInst); in run() 146 protected void invokeBeforeClassMethods(ITestClass testClass, IMethodInstance mi) { in invokeBeforeClassMethods() argument 148 listener.onBeforeClass(testClass, mi); in invokeBeforeClassMethods() 156 ITestNGMethod[] classMethods= testClass.getBeforeClassMethods(); in invokeBeforeClassMethods() 169 synchronized(testClass) { in invokeBeforeClassMethods() 170 Set<Object> instances= invokedBeforeClassMethods.get(testClass); in invokeBeforeClassMethods() 173 invokedBeforeClassMethods.put(testClass, instances); in invokeBeforeClassMethods() 178 m_invoker.invokeConfigurations(testClass, in invokeBeforeClassMethods() [all …]
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/debuggee/ |
D | InvokeMethodDebuggee.java | 64 static testClass checkClass = new testClass(); 65 static testClass[] checkClassArray = {new testClass()}; 66 static testClass[][] checkClassArray2 = {{new testClass()}, {new testClass()}}; 71 testClass tc, testClass[] atc, testClass[][] aatc) { in testMethod3() 104 class testClass { class
|
/external/junit/src/main/java/org/junit/validator/ |
D | AnnotationsValidator.java | 33 public List<Exception> validateTestClass(TestClass testClass) { in validateTestClass() argument 37 .validateTestClass(testClass); in validateTestClass() 46 abstract Iterable<T> getAnnotatablesForTestClass(TestClass testClass); in getAnnotatablesForTestClass() argument 51 public List<Exception> validateTestClass(TestClass testClass) { in validateTestClass() argument 53 for (T annotatable : getAnnotatablesForTestClass(testClass)) { in validateTestClass() 81 Iterable<TestClass> getAnnotatablesForTestClass(TestClass testClass) { in getAnnotatablesForTestClass() argument 82 return singletonList(testClass); in getAnnotatablesForTestClass() 87 AnnotationValidator validator, TestClass testClass) { in validateAnnotatable() argument 88 return validator.validateAnnotatedClass(testClass); in validateAnnotatable() 96 TestClass testClass) { in getAnnotatablesForTestClass() argument [all …]
|
/external/junit/src/main/java/org/junit/runners/parameterized/ |
D | TestWithParameters.java | 20 private final TestClass testClass; field in TestWithParameters 24 public TestWithParameters(String name, TestClass testClass, in TestWithParameters() argument 27 notNull(testClass, "The test class is missing."); in TestWithParameters() 30 this.testClass = testClass; in TestWithParameters() 39 return testClass; in getTestClass() 50 result = prime * result + testClass.hashCode(); in hashCode() 68 && testClass.equals(other.testClass); in equals() 73 return testClass.getName() + " '" + name + "' with parameters " in toString()
|
/external/mockito/src/test/java/org/mockito/internal/session/ |
D | DefaultMockitoSessionBuilderTest.java | 49 TestClass testClass = new TestClass(); in creates_sessions_for_multiple_test_class_instances_for_repeated_calls() local 50 TestClass.NestedTestClass nestedTestClass = testClass.new NestedTestClass(); in creates_sessions_for_multiple_test_class_instances_for_repeated_calls() 52 …new DefaultMockitoSessionBuilder().initMocks(testClass).initMocks(nestedTestClass).startMocking().… in creates_sessions_for_multiple_test_class_instances_for_repeated_calls() 54 assertNotNull(testClass.set); in creates_sessions_for_multiple_test_class_instances_for_repeated_calls() 59 TestClass testClass = new TestClass(); in creates_sessions_for_multiple_test_class_instances_for_varargs_call() local 60 TestClass.NestedTestClass nestedTestClass = testClass.new NestedTestClass(); in creates_sessions_for_multiple_test_class_instances_for_varargs_call() 62 …new DefaultMockitoSessionBuilder().initMocks(testClass, nestedTestClass).startMocking().finishMock… in creates_sessions_for_multiple_test_class_instances_for_varargs_call() 64 assertNotNull(testClass.set); in creates_sessions_for_multiple_test_class_instances_for_varargs_call() 69 TestClass testClass = new TestClass(); in uses_logger_and_strictness() local 73 .initMocks(testClass) in uses_logger_and_strictness() [all …]
|
/external/junit-params/src/main/java/junitparams/internal/ |
D | TestMethod.java | 28 private Class<?> testClass; field in TestMethod 34 public TestMethod(FrameworkMethod method, TestClass testClass) { in TestMethod() argument 36 this.testClass = testClass.getJavaClass(); in TestMethod() 38 parametersReader = new ParametersReader(testClass(), frameworkMethod); in TestMethod() 47 public static List<FrameworkMethod> listFrom(TestClass testClass) { in listFrom() argument 50 for (FrameworkMethod frameworkMethod : testClass.getAnnotatedMethods(Test.class)) { in listFrom() 51 TestMethod testMethod = new TestMethod(frameworkMethod, testClass); in listFrom() 80 private Class<?> testClass() { in testClass() method in TestMethod 81 return testClass; in testClass() 109 return Description.createTestDescription(testClass().getName(), name, uniqueMethodId); in getDescription() [all …]
|
/external/testng/src/main/java/org/testng/junit/ |
D | JUnitTestRunner.java | 183 protected Test getTest(Class testClass, String... methods) { in getTest() argument 187 Constructor c = testClass.getConstructor(String.class); in getTest() 192 runFailed(testClass, "abstract class " + ex); in getTest() 194 runFailed(testClass, "constructor is not public " + ex); in getTest() 196 runFailed(testClass, "actual and formal parameters differ " + ex); in getTest() 198 runFailed(testClass, "exception while instatiating test for method '" + m + "' " + ex); in getTest() 202 runFailed(testClass, "no constructor accepting String argument found " + ex); in getTest() 204 runFailed(testClass, "security exception " + ex); in getTest() 210 suiteMethod = testClass.getMethod(SUITE_METHODNAME, new Class[0]); in getTest() 215 return new TestSuite(testClass); in getTest() [all …]
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/remove/ |
D | NodeRemovalTest.java | 41 ClassOrInterfaceDeclaration testClass = cu.addClass("test"); in testRemoveClassFromCompilationUnit() local 43 boolean remove = testClass.remove(); in testRemoveClassFromCompilationUnit() 50 ClassOrInterfaceDeclaration testClass = cu.addClass("test"); in testRemoveFieldFromClass() local 52 FieldDeclaration addField = testClass.addField(String.class, "test"); in testRemoveFieldFromClass() 53 assertEquals(1, testClass.getMembers().size()); in testRemoveFieldFromClass() 56 assertEquals(0, testClass.getMembers().size()); in testRemoveFieldFromClass() 61 ClassOrInterfaceDeclaration testClass = cu.addClass("testC"); in testRemoveStatementFromMethodBody() local 63 MethodDeclaration addMethod = testClass.addMethod("testM"); in testRemoveStatementFromMethodBody()
|
/external/junit-params/src/main/java/junitparams/internal/parameters/ |
D | ParametersFromTestClassMethod.java | 9 private Class<?> testClass; field in ParametersFromTestClassMethod 12 ParametersFromTestClassMethod(FrameworkMethod frameworkMethod, Class<?> testClass) { in ParametersFromTestClassMethod() argument 14 this.testClass = testClass; in ParametersFromTestClassMethod() 20 return paramsFromMethodCommon.paramsFromMethod(testClass); in getParameters() 27 ….method().isEmpty() || paramsFromMethodCommon.containsDefaultParametersProvidingMethod(testClass)); in isApplicable()
|
/external/testng/src/test/java/test/annotationtransformer/ |
D | MyParamTransformer.java | 14 public void transform(ITestAnnotation annotation, Class testClass, in transform() argument 16 if (!onlyOneNonNull(testClass, testConstructor, testMethod)) { in transform() 21 …public static boolean onlyOneNonNull(Class testClass, Constructor testConstructor, Method testMeth… 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()
|
/external/junit/src/main/java/org/junit/internal/runners/ |
D | ErrorReportingRunner.java | 16 private final Class<?> testClass; field in ErrorReportingRunner 18 public ErrorReportingRunner(Class<?> testClass, Throwable cause) { in ErrorReportingRunner() argument 19 if (testClass == null) { in ErrorReportingRunner() 22 this.testClass = testClass; in ErrorReportingRunner() 28 Description description = Description.createSuiteDescription(testClass); in getDescription() 58 return Description.createTestDescription(testClass, in describeCause()
|
D | MethodValidator.java | 26 private TestClass testClass; field in MethodValidator 28 public MethodValidator(TestClass testClass) { in MethodValidator() argument 29 this.testClass = testClass; in MethodValidator() 37 List<Method> methods = testClass.getAnnotatedMethods(Test.class); in validateInstanceMethods() 63 testClass.getConstructor(); in validateNoArgConstructor() 71 List<Method> methods = testClass.getAnnotatedMethods(annotation); in validateTestMethods()
|
/external/mockito/src/main/java/org/mockito/internal/util/reflection/ |
D | FieldInitializer.java | 175 private final Object testClass; field in FieldInitializer.NoArgConstructorInstantiator 182 NoArgConstructorInstantiator(Object testClass, Field field) { in NoArgConstructorInstantiator() argument 183 this.testClass = testClass; in NoArgConstructorInstantiator() 196 setField(testClass, field,newFieldInstance); in instantiate() 198 return new FieldInitializationReport(field.get(testClass), true, false); in instantiate() 226 private final Object testClass; field in FieldInitializer.ParameterizedConstructorInstantiator 255 …ParameterizedConstructorInstantiator(Object testClass, Field field, ConstructorArgumentResolver ar… in ParameterizedConstructorInstantiator() argument 256 this.testClass = testClass; in ParameterizedConstructorInstantiator() 270 setField(testClass, field,newFieldInstance); in instantiate() 272 return new FieldInitializationReport(field.get(testClass), false, true); in instantiate()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/ |
D | ConfigMerger.java | 37 public Config getConfig(Class<?> testClass, Method method, Config globalConfig) { in getConfig() argument 41 for (String packageName : reverse(packageHierarchyOf(testClass))) { in getConfig() 46 for (Class clazz : reverse(parentClassesFor(testClass))) { in getConfig() 110 private List<Class> parentClassesFor(Class testClass) { in parentClassesFor() argument 112 while (testClass != null && !testClass.equals(Object.class)) { in parentClassesFor() 113 testClassHierarchy.add(testClass); in parentClassesFor() 114 testClass = testClass.getSuperclass(); in parentClassesFor()
|