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

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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -