-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
Hi *,
trying to use quickcheck in android app as the following:
@RunWith(JUnitQuickcheck.class)
public class ExampleInstrumentedTest {
@Property
public void testSerialization(long a ) {
CpuUsageInfo original = new CpuUsageInfo(a,a);
[.....]
}
but the following error appears on execution:
E/TestRunner: java.lang.NoSuchMethodError: No virtual method getAnnotatedType()Ljava/lang/reflect/AnnotatedType; in class Ljava/lang/reflect/Parameter; or its super classes (declaration of 'java.lang.reflect.Parameter' appears in /apex/com.android.art/javalib/core-oj.jar)
at com.pholser.junit.quickcheck.internal.ParameterTypeContext.forParameter(ParameterTypeContext.java:155)
By checking the android Parameter.java source code [1] I noticed the code was changed and the above virtual method was removed,
I was wondering whether it would be possible to make quickcheck compatible with the Android runtime or if the above API removed is a blocking modification.
thanks
[1] https://developer.android.com/reference/java/lang/reflect/Parameter
Metadata
Metadata
Assignees
Labels
No labels