Home
last modified time | relevance | path

Searched refs:loadClass (Results 1 – 25 of 149) sorted by relevance

123456

/external/mockito/src/test/java/org/mockitoutil/
DClassLoadersTest.java30 cl.loadClass("org.mockito.Mockito"); in isolated_class_loader_cannot_load_classes_when_no_given_prefix()
44 cl.loadClass(CLASS_NAME_DEPENDING_ON_INTERFACE); in isolated_class_loader_cannot_load_classes_if_no_code_source_path()
62 cl.loadClass(CLASS_NAME_DEPENDING_ON_INTERFACE); in isolated_class_loader_cannot_load_classes_if_dependent_classes_do_not_match_the_prefixes()
80 Class<?> aClass = cl.loadClass(CLASS_NAME_DEPENDING_ON_INTERFACE); in isolated_class_loader_can_load_classes_when_dependent_classes_are_matching_the_prefixes()
97 Class<?> aClass = cl.loadClass(AClass.class.getName()); in isolated_class_loader_can_load_classes_isolated_classes_in_isolation()
116 cl.loadClass(AClass.class.getName()); in isolated_class_loader_cannot_load_classes_if_prefix_excluded()
144 cl.loadClass("org.mockito.Mockito"); in excluding_class_loader_cannot_load_classes_when_no_correct_source_url_set()
157 cl.loadClass("org.mockito.Mockito"); in excluding_class_loader_can_load_classes_when_correct_source_url_set()
170 cl.loadClass("org.mockito.Mockito"); in excluding_class_loader_cannot_load_class_when_excluded_prefix_match_class_to_load()
174 cl.loadClass("org.mockito.BDDMockito"); in excluding_class_loader_cannot_load_class_when_excluded_prefix_match_class_to_load()
[all …]
DSimplePerRealmReloadingClassLoader.java61 public Class<?> loadClass(String qualifiedClassName) throws ClassNotFoundException { in loadClass() method in SimplePerRealmReloadingClassLoader
82 return super.loadClass(qualifiedName); in useParentClassLoaderFor()
90 … Object instance = this.loadClass(callableCalledInClassLoaderRealm).getConstructor().newInstance(); in doInRealm()
106 …Object instance = this.loadClass(callableCalledInClassLoaderRealm).getConstructor(argTypes).newIns… in doInRealm()
/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/
DSandboxClassLoaderTest.java98 Class<?> clazz = loadClass(AFinalClass.class); in shouldMakeClassesNonFinal()
104 Constructor<?> defaultCtor = loadClass(AClassWithNoDefaultConstructor.class).getConstructor(); in forClassesWithNoDefaultConstructor_shouldCreateOneButItShouldNotCallShadow()
114 Class<?> clazz = loadClass(AClassWithNoDefaultConstructor.class); in shouldDelegateToHandlerForConstructors()
133 Class<?> exampleClass = classLoader.loadClass(AnExampleClass.class.getName()); in shouldDelegateClassLoadForUnacquiredClasses()
140 Class<?> exampleClass = classLoader.loadClass(AnUninstrumentedClass.class.getName()); in shouldPerformClassLoadForAcquiredClasses()
153 Class<?> exampleClass = classLoader.loadClass(AnExampleClass.class.getName()); in shouldPerformClassLoadAndInstrumentLoadForInstrumentedClasses()
171 Class<?> exampleClass = loadClass(AnExampleClass.class); in callingNormalMethodShouldInvokeClassHandler()
184 Class<?> exampleClass = loadClass(AnExampleClass.class); in shouldGenerateClassSpecificDirectAccessMethod()
196 Class<?> exampleClass = loadClass(AnExampleClass.class); in soMockitoDoesntExplodeDueToTooManyMethods_shouldGenerateClassSpecificDirectAccessMethodWhichIsPrivateAndFinal()
205 Class<?> exampleClass = loadClass(AClassWithStaticMethod.class); in callingStaticMethodShouldInvokeClassHandler()
[all …]
/external/guice/core/test/com/googlecode/guice/
DBytecodeGenTest.java120 protected Class<?> loadClass(final String name, final boolean resolve) in loadClass() method in BytecodeGenTest.TestVisibilityClassLoader
134 return super.loadClass(name, resolve); in loadClass()
155 return super.loadClass(name, resolve); in loadClass()
171 proxyTestClass = (Class<ProxyTest>) testClassLoader.loadClass(ProxyTest.class.getName()); in setUp()
172 realClass = (Class<ProxyTestImpl>) testClassLoader.loadClass(ProxyTestImpl.class.getName()); in setUp()
299 Class hiddenMethodReturnClass = testClassLoader.loadClass(HiddenMethodReturn.class.getName()); in testClassLoaderBridging()
301 testClassLoader.loadClass(HiddenMethodParameter.class.getName()); in testClassLoaderBridging()
305 Class hiddenClass = testClassLoader.loadClass(Hidden.class.getName()); in testClassLoaderBridging()
362 return loadClass(cls.getName()).asSubclass(LogCreator.class); in loadLogCreatorType()
371 protected Class<?> loadClass(final String name, final boolean resolve) in loadClass() method in BytecodeGenTest.MultipleVersionsOfGuiceClassLoader
[all …]
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DTypeCachingMockBytecodeGeneratorTest.java41 classloader_with_life_shorter_than_cache.loadClass("foo.Bar"), in ensure_cache_is_cleared_if_no_reference_to_classloader_and_classes()
70 classloader_with_life_shorter_than_cache.loadClass("foo.Bar"), in ensure_cache_returns_same_instance()
77 classloader_with_life_shorter_than_cache.loadClass("foo.Bar"), in ensure_cache_returns_same_instance()
109 classloader_with_life_shorter_than_cache.loadClass("foo.Bar"), in ensure_cache_returns_different_instance_serializableMode()
116 classloader_with_life_shorter_than_cache.loadClass("foo.Bar"), in ensure_cache_returns_different_instance_serializableMode()
133 … new HoldingAReference(new WeakReference<Class<?>>(short_lived_classloader.loadClass("foo.Bar")))); in validate_simple_code_idea_where_weakhashmap_with_classloader_as_key_get_GCed_when_no_more_references()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/util/
DClassPathRepository.java79 public JavaClass loadClass(String className) throws ClassNotFoundException { in loadClass() method in ClassPathRepository
89 return loadClass(_path.getInputStream(className), className); in loadClass()
108 public JavaClass loadClass(final Class<?> clazz) throws ClassNotFoundException { in loadClass() method in ClassPathRepository
121 return cls = loadClass(clsStream, className); in loadClass()
127 …private JavaClass loadClass(final InputStream is, final String className) throws ClassNotFoundExce… in loadClass() method in ClassPathRepository
DMemorySensitiveClassPathRepository.java85 public JavaClass loadClass(String className) throws ClassNotFoundException { in loadClass() method in MemorySensitiveClassPathRepository
95 return loadClass(_path.getInputStream(className), className); in loadClass()
114 public JavaClass loadClass(final Class<?> clazz) throws ClassNotFoundException { in loadClass() method in MemorySensitiveClassPathRepository
127 return cls = loadClass(clsStream, className); in loadClass()
134 …private JavaClass loadClass(final InputStream is, final String className) throws ClassNotFoundExce… in loadClass() method in MemorySensitiveClassPathRepository
DClassLoaderRepository.java82 public JavaClass loadClass(final String className) throws ClassNotFoundException { in loadClass() method in ClassLoaderRepository
103 public JavaClass loadClass( final Class<?> clazz ) throws ClassNotFoundException { in loadClass() method in ClassLoaderRepository
104 return loadClass(clazz.getName()); in loadClass()
DRepository.java55 JavaClass loadClass( String className ) throws java.lang.ClassNotFoundException; in loadClass() method
61 JavaClass loadClass( Class<?> clazz ) throws java.lang.ClassNotFoundException; in loadClass() method
DClassLoader.java106 …protected Class<?> loadClass( final String class_name, final boolean resolve ) throws ClassNotFoun… in loadClass() method in ClassLoader
116 cl = getParent().loadClass(class_name); in loadClass()
127 if ((clazz = repository.loadClass(class_name)) != null) { in loadClass()
/external/guava/guava-tests/test/com/google/common/base/
DFinalizableReferenceQueueClassLoaderUnloadingTest.java91 Class<?> sepFrqC = sepLoader.loadClass(frqC.getName()); in useFrqInSeparateLoader()
102 sepLoader.loadClass(FinalizableReferenceQueue.SystemLoader.class.getName()); in useFrqInSeparateLoader()
110 Class<?> sepFwrC = sepLoader.loadClass(MyFinalizableWeakReference.class.getName()); in useFrqInSeparateLoader()
113 Class<?> sepStopwatchC = sepLoader.loadClass(Stopwatch.class.getName()); in useFrqInSeparateLoader()
210 Class<?> sepFrqC = sepLoader.loadClass(frqC.getName()); in doTestUnloadableInStaticFieldIfClosed()
214 sepLoader.loadClass(FinalizableReferenceQueue.SystemLoader.class.getName()); in doTestUnloadableInStaticFieldIfClosed()
220 Class<?> sepFrqUserC = sepLoader.loadClass(frqUserC.getName()); in doTestUnloadableInStaticFieldIfClosed()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DInvocationProfile.java14 this.clazz = loadClass(classLoader, methodSignature.className); in InvocationProfile()
28 classes[i] = ShadowWrangler.loadClass(paramType, classLoader); in getParamClasses()
33 private Class<?> loadClass(ClassLoader classLoader, String className) { in loadClass() method in InvocationProfile
35 return classLoader.loadClass(className); in loadClass()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/bytecode/
DAndroidSandboxClassLoaderTest.java28 Class<?> versionClass = loadClass(Build.VERSION.class); in shouldMakeBuildVersionIntsNonFinal()
43 private Class<?> loadClass(Class<?> clazz) throws ClassNotFoundException { in loadClass() method in AndroidSandboxClassLoaderTest
44 return classLoader.loadClass(clazz.getName()); in loadClass()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/
DTargetLoader.java43 return loadClass(sourcename); in load()
80 protected synchronized Class<?> loadClass(String name, boolean resolve) in loadClass() method in TargetLoader
90 return super.loadClass(name, resolve); in loadClass()
/external/desugar/java/com/google/devtools/build/android/desugar/io/
DThrowingClassLoader.java19 protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { in loadClass() method in ThrowingClassLoader
23 return super.loadClass(name, resolve); in loadClass()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue318/
DContextClassLoaderTest.java107 yamlCL.loadClass(DomainBean.class.getName()); in expectNoDomainClassInYamlCL()
112 yamlCL.loadClass(Yaml.class.getName()); in yamlClassInYAMLCL()
120 Class<?> yamlClass = yamlCL.loadClass(Yaml.class.getName()); in domainInDifferentConstructor()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DClassUtil.java8 public static Class loadClass(Class sourceClass, final String className) in loadClass() method in ClassUtil
16 return loader.loadClass(className); in loadClass()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/util/
DClassUtil.java12 public static Class loadClass(Class sourceClass, final String className) in loadClass() method in ClassUtil
20 return loader.loadClass(className); in loadClass()
/external/guice/core/test/com/google/inject/
DEagerSingletonTest.java155 public Class<?> loadClass(String name) throws ClassNotFoundException { in copyClass()
166 return super.loadClass(name); in copyClass()
168 }.loadClass(cls.getName()); in copyClass()
/external/apache-xml/src/main/java/org/apache/xalan/extensions/
DObjectFactory.java91 providerClass = cl.loadClass(className); in findProviderClass()
100 providerClass = cl.loadClass(className); in findProviderClass()
/external/jacoco/org.jacoco.examples/src/org/jacoco/examples/
DCoreTutorial.java77 protected Class<?> loadClass(final String name, final boolean resolve) in loadClass() method in CoreTutorial.MemoryClassLoader
83 return super.loadClass(name, resolve); in loadClass()
129 final Class<?> targetClass = memoryClassLoader.loadClass(targetName); in execute()
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DUtil.java44 return loadClass(className); in lenientClassForName()
50 return loadClass(newName); in lenientClassForName()
61 public static Class<?> loadClass(String className) throws ClassNotFoundException { in loadClass() method in Util
/external/grpc-grpc-java/context/src/test/java/io/grpc/
DStaticTestingClassLoader.java56 protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { in loadClass() method in StaticTestingClassLoader
68 klass = super.loadClass(name, false); in loadClass()
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/
DMetricsTest.java41 public Class<?> loadClass(String name) { in loadMetricsComponent_UsesProvidedClassLoader()
52 public Class<?> loadClass(String name) throws ClassNotFoundException { in loadMetricsComponent_IgnoresMissingClasses()
/external/mockito/src/test/java/org/mockito/internal/junit/
DExceptionFactoryTest.java27 …nonJunitArgumentsAreDifferent = classLoaderWithoutJUnit.loadClass(ArgumentsAreDifferent.class.getN… in init()
33 … Class<?> exceptionFactory = classLoaderWithoutJUnit.loadClass(ExceptionFactory.class.getName()); in createArgumentsAreDifferentException_withoutJUnit()

123456