thomas-fritsch / psdt

PostScript Development Tools for Eclipse
http://thomas-fritsch.github.io/psdt/
GNU General Public License v3.0
7 stars 0 forks source link

Perspective UI test failing in Maven build #7

Closed thomas-fritsch closed 8 years ago

thomas-fritsch commented 8 years ago

UI test case PerspectiveTest is failing in Maven/Tycho build.

org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException
    at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:4061)
    at org.eclipse.ui.internal.WorkbenchWindow.setup(WorkbenchWindow.java:733)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:888)
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:120)
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:85)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.inject(ContextInjectionFactory.java:73)
    at org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1480)
    at org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1453)
    at de.tfritsch.psdt.tests.PerspectiveTest.testPostscriptPerspective(PerspectiveTest.java:41)

However, this test runs fine when started from Eclipse IDE (Run as -> JUnit Plug-in Test).

thomas-fritsch commented 8 years ago

Temporary work-around:

Disabled this test-class in de.tfritsch.psdt.tests/pom.xml

thomas-fritsch commented 8 years ago

Same exception also occuring with new WizardTest