Discussion:
[whispersystems] Problems running simple JUnit tests
Steffen Märcker
2016-02-21 13:46:44 UTC
Permalink
Hi,

I encountered problems running tests in package
org.thoughtcrime.securesms.database; The following exception was thrown.
java.lang.RuntimeException: Stub!
Unfortunately, moving junit upwards in the dependencies didn't help, as
suggested by some google hits.
/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/bin/java
[...] org.thoughtcrime.securesms.database.XmlBackupTags
junit/textui/ResultPrinter
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)
Caused by: java.lang.ClassNotFoundException: junit.textui.ResultPrinter
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
Process finished with exit code 1
import junit.framework.TestCase;
[...]
public class XmlBackupTags extends TestCase {
Thanks in advance!
Steffen

Loading...