Opened 9 years ago
Last modified 16 months ago
#13344 reopened defect
Unable to run unit tests in Eclipse on Windows — at Version 1
| Reported by: | GerdP | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 16.08 |
| Component: | Unit tests | Version: | |
| Keywords: | eclipse | Cc: |
Description (last modified by )
I try to execute the test MultipolygonTestTest.
I have the source in the edit window and do a right click into the window, then select
Run as -> JUnit test
This is what I get: ERROR: java.io.IOException: Failed to open input stream for resource 'resource://data/preferences.xsd' java.io.IOException: Failed to open input stream for resource 'resource://data/preferences.xsd' at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:214) at org.openstreetmap.josm.data.preferences.PreferencesReader.validateXML(PreferencesReader.java:95) at org.openstreetmap.josm.data.preferences.PreferencesReader.validateXML(PreferencesReader.java:84) at org.openstreetmap.josm.data.Preferences.load(Preferences.java:572) at org.openstreetmap.josm.data.Preferences.init(Preferences.java:678) at org.openstreetmap.josm.JOSMFixture.init(JOSMFixture.java:102) at org.openstreetmap.josm.data.validation.tests.MultipolygonTestTest.setUp(MultipolygonTestTest.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Change History (3)
by , 9 years ago
| Attachment: | eclipse-config.txt added |
|---|
comment:1 by , 9 years ago
| Description: | modified (diff) |
|---|
by , 9 years ago
Note:
See TracTickets
for help on using tickets.


