I want to run a JUnit test that uses android.text.format.Time
, but when I try to add android.jar to the classpath, I get "java.lang.RuntimeException: Stub!", because android.jar contains only stub implementation of the classes.
How do I run a normal Java program and use the Time library android.text.format.Time
?