public class TestResolvedJavaMethod extends MethodUniverse
ResolvedJavaMethod.| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
TestResolvedJavaMethod.NonNull |
(package private) static interface |
TestResolvedJavaMethod.Special |
TypeUniverse.ConstantsUniverse, TypeUniverse.ConstantValue, TypeUniverse.InnerClass, TypeUniverse.InnerStaticClass, TypeUniverse.InnerStaticFinalClass, TypeUniverse.ProtectedInnerClass| Modifier and Type | Field and Description |
|---|---|
private static String[] |
untestedApiMethods |
constructors, methodsarrayClasses, classes, constantReflection, JAVA_VERSION, javaTypes, metaAccess, unsafe| Constructor and Description |
|---|
TestResolvedJavaMethod() |
constants, dimensions, getArrayClass, readConstantsprivate static final String[] untestedApiMethods
public TestResolvedJavaMethod()
public void getCodeTest()
ResolvedJavaMethod.getCode()public void getCodeSizeTest()
ResolvedJavaMethod.getCodeSize()public void getModifiersTest()
public void isClassInitializerTest()
ResolvedJavaMethod.isClassInitializer()public void isConstructorTest()
public void isSyntheticTest()
public void isBridgeTest()
public void isVarArgsTest()
public void isSynchronizedTest()
public void canBeStaticallyBoundTest()
private static boolean canBeStaticallyBound(Member method)
private static String methodWithExceptionHandlers(String p1, Object o2)
public void getExceptionHandlersTest() throws NoSuchMethodException
NoSuchMethodExceptionprivate static String nullPointerExceptionOnFirstLine(Object o, String ignored)
public void asStackTraceElementTest() throws NoSuchMethodException
NoSuchMethodExceptionpublic void getConstantPoolTest()
public void getAnnotationTest() throws NoSuchMethodException
NoSuchMethodExceptionpublic void getAnnotationsTest() throws NoSuchMethodException
NoSuchMethodExceptionprivate static void methodWithAnnotatedParameters(HashMap<String,String> p1, Class<? extends Annotation> p2)
public void getParameterAnnotationsTest() throws NoSuchMethodException
NoSuchMethodExceptionpublic void getGenericParameterTypesTest() throws NoSuchMethodException
NoSuchMethodExceptionpublic void getMaxLocalsTest() throws NoSuchMethodException
NoSuchMethodExceptionpublic void getMaxStackSizeTest() throws NoSuchMethodException
NoSuchMethodExceptionpublic void isDefaultTest()
public void hasReceiverTest()
public void hasBytecodesTest()
public void isJavaLangObjectInitTest() throws NoSuchMethodException
NoSuchMethodExceptionpublic void isSignaturePolymorphicTest()
private Method findTestMethod(Method apiMethod)
public void testCoverage()
ResolvedJavaMethod either have a test written
for them or are added to untestedApiMethods.