android - Cloning an object in java: org.objenesis.ObjenesisException: java.lang.NoSuchMethodException: newInstance [class java.lang.Class, int] -
i using espresso test application.
i using library uk.com.robust-it:cloning
(java deep cloning library) version 1.9.2 clone object.
if using application, have no exception, when tests running, have following exception:
org.objenesis.objenesisexception: java.lang.nosuchmethodexception: newinstance [class java.lang.class, int] @ org.objenesis.instantiator.android.androidinstantiator.getnewinstancemethod(androidinstantiator.java:62) @ org.objenesis.instantiator.android.androidinstantiator.<init>(androidinstantiator.java:38) @ org.objenesis.strategy.stdinstantiatorstrategy.newinstantiatorof(stdinstantiatorstrategy.java:75) @ org.objenesis.objenesisbase.getinstantiatorof(objenesisbase.java:90) @ org.objenesis.objenesisbase.newinstance(objenesisbase.java:73) @ com.rits.cloning.objenesisinstantiationstrategy.newinstance(objenesisinstantiationstrategy.java:18) @ com.rits.cloning.cloner.newinstance(cloner.java:271) @ com.rits.cloning.cloner.cloneobject(cloner.java:436) @ com.rits.cloning.cloner.cloneinternal(cloner.java:431) @ com.rits.cloning.cloner.deepclone(cloner.java:301)
does have exception?
this guy has same problem ...
https://groups.google.com/forum/#!topic/objenesis-dev/jdqwcwy5e78
Comments
Post a Comment