java - Unit testing with Android XmlPullParser on the JVM -


i'm trying set-up unit test cases application.

a critical part of app parses xml files org.xmlpull.v1.xmlpullparser. part low-level, isolated , independant activities, context, views, etc., wanted make run locally on jvm, avoid having plug or emulate device time.

however when running on jvm:

xmlpullparser parser = xml.newpullparser(); parser.setinput(in, null); ... 

i famous:

exception in thread "main" java.lang.runtimeexception: stub!     @ android.util.xml.newpullparser(xml.java:15)     ... 

is there way around this?

i managed go around problem using robolectric in android-studio. followed this tutorial, , stumbled upon this other problem.

now works fine except i can't see standard output when running tests.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

php - Improving script execution time -

How to provide Authorization & Authentication using Asp.net, C#? -