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, methods
arrayClasses, classes, constantReflection, JAVA_VERSION, javaTypes, metaAccess, unsafe
Constructor and Description |
---|
TestResolvedJavaMethod() |
constants, dimensions, getArrayClass, readConstants
private 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
NoSuchMethodException
private static String nullPointerExceptionOnFirstLine(Object o, String ignored)
public void asStackTraceElementTest() throws NoSuchMethodException
NoSuchMethodException
public void getConstantPoolTest()
public void getAnnotationTest() throws NoSuchMethodException
NoSuchMethodException
public void getAnnotationsTest() throws NoSuchMethodException
NoSuchMethodException
private static void methodWithAnnotatedParameters(HashMap<String,String> p1, Class<? extends Annotation> p2)
public void getParameterAnnotationsTest() throws NoSuchMethodException
NoSuchMethodException
public void getGenericParameterTypesTest() throws NoSuchMethodException
NoSuchMethodException
public void getMaxLocalsTest() throws NoSuchMethodException
NoSuchMethodException
public void getMaxStackSizeTest() throws NoSuchMethodException
NoSuchMethodException
public void isDefaultTest()
public void hasReceiverTest()
public void hasBytecodesTest()
public void isJavaLangObjectInitTest() throws NoSuchMethodException
NoSuchMethodException
public void isSignaturePolymorphicTest()
private Method findTestMethod(Method apiMethod)
public void testCoverage()
ResolvedJavaMethod
either have a test written
for them or are added to untestedApiMethods
.