Author: akazakov
Date: 2009-03-05 09:41:06 -0500 (Thu, 05 Mar 2009)
New Revision: 14018
Modified:
branches/jbosstools-3.0.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java
Log:
fix for JUnit test error
testSettingsPage Failure Settings page is not valid: Model source folder
"/TestSeamSettingsPreferencesPage" does not exist.
junit.framework.AssertionFailedError: Settings page is not valid: Model source folder
"/TestSeamSettingsPreferencesPage" does not exist.
at
org.jboss.tools.seam.ui.test.preferences.SeamSettingsPreferencesPageTest.testSettingsPage(SeamSettingsPreferencesPageTest.java:104)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.extensions.TestSetup.run(TestSetup.java:25)
Modified:
branches/jbosstools-3.0.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java
===================================================================
---
branches/jbosstools-3.0.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java 2009-03-05
12:52:57 UTC (rev 14017)
+++
branches/jbosstools-3.0.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java 2009-03-05
14:41:06 UTC (rev 14018)
@@ -688,7 +688,7 @@
public static IResource getJavaSourceRoot(IProject project) {
IJavaProject javaProject = getJavaProject(project);
- if(javaProject == null || !javaProject.isOpen()) return null;
+ if(javaProject == null) return null;
try {
IClasspathEntry[] es = javaProject.getResolvedClasspath(true);
for (int i = 0; i < es.length; i++) {
Show replies by date