Skip to content

Fix com.google.appengine.eclipse.core.test.swtbot.properties.GaePropertyPageTest #326

@GoogleCodeExporter

Description

@GoogleCodeExporter
This test runs fine when run as a SWTBot test from the PDE but fails the 
following way when run from the Maven/Tycho surefire plug-in. It fails with the 
following NPE when attempting to switch to the Java perspective:
Caused by: java.lang.NullPointerException: null
    at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:4061)
    at org.eclipse.ui.internal.Workbench.showPerspective(Workbench.java:3096)
    at org.eclipse.ui.internal.Workbench.showPerspective(Workbench.java:3038)
    at org.eclipse.swtbot.eclipse.finder.widgets.SWTBotPerspective$1.run(SWTBotPerspective.java:55)

It is the only test that uses the SwtBotTestingUtilities.createJavaProject() 
method, so either something needs to be updated in that method to do complete 
setup, or additional runtime dependencies need to be added to the test's setup.


Original issue reported on code.google.com by tpar...@google.com on 3 Feb 2015 at 12:40

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions