scheglov / google-plugin-for-eclipse

Automatically exported from code.google.com/p/google-plugin-for-eclipse
Eclipse Public License 1.0
0 stars 3 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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