Author: snjeza
Date: 2012-01-06 14:32:02 -0500 (Fri, 06 Jan 2012)
New Revision: 37694
Modified:
trunk/examples/tests/org.jboss.tools.project.examples.test/.project
trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/ProjectTest.java
Log:
JBIDE-10602 Project Examples tests fail
Modified: trunk/examples/tests/org.jboss.tools.project.examples.test/.project
===================================================================
--- trunk/examples/tests/org.jboss.tools.project.examples.test/.project 2012-01-06
19:30:05 UTC (rev 37693)
+++ trunk/examples/tests/org.jboss.tools.project.examples.test/.project 2012-01-06
19:32:02 UTC (rev 37694)
@@ -31,16 +31,4 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
</natures>
- <linkedResources>
- <link>
- <name>lib-org.jboss.tools.jst.web.kb_3.3.0.v20111001-0515-H542-M4</name>
- <type>2</type>
- <location>E:/eclipse-3.7.1/plugins/org.jboss.tools.jst.web.kb_3.3.0.v20111001-0515-H542-M4</location>
- </link>
- <link>
- <name>lib-org.jboss.tools.jst.web_3.3.0.v20111001-0515-H542-M4</name>
- <type>2</type>
- <location>E:/eclipse-3.7.1/plugins/org.jboss.tools.jst.web_3.3.0.v20111001-0515-H542-M4</location>
- </link>
- </linkedResources>
</projectDescription>
Modified:
trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/ProjectTest.java
===================================================================
---
trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/ProjectTest.java 2012-01-06
19:30:05 UTC (rev 37693)
+++
trunk/examples/tests/org.jboss.tools.project.examples.test/src/org/jboss/tools/project/examples/test/ProjectTest.java 2012-01-06
19:32:02 UTC (rev 37694)
@@ -14,7 +14,6 @@
import static org.junit.Assert.assertTrue;
import java.io.File;
-import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
@@ -33,13 +32,11 @@
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.resources.WorkspaceJob;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
-import org.eclipse.ui.PlatformUI;
import org.jboss.tools.project.examples.Messages;
import org.jboss.tools.project.examples.ProjectExamplesActivator;
import org.jboss.tools.project.examples.model.Category;
@@ -48,7 +45,6 @@
import org.jboss.tools.project.examples.model.Project;
import org.jboss.tools.project.examples.model.ProjectExampleSite;
import org.jboss.tools.project.examples.model.ProjectUtil;
-import org.jboss.tools.project.examples.wizard.NewProjectExamplesWizard;
import org.jboss.tools.test.util.JobUtils;
import org.junit.AfterClass;
import org.junit.BeforeClass;
@@ -214,6 +210,12 @@
for (int i = 0; i < projectMarkers.length; i++) {
if (projectMarkers[i].getAttribute(IMarker.SEVERITY,
IMarker.SEVERITY_ERROR) == IMarker.SEVERITY_ERROR) {
+ String message = projectMarkers[i].getAttribute(IMarker.MESSAGE, null);
+ String location = projectMarkers[i].getAttribute(IMarker.LOCATION, null);
+ String lineNumber = projectMarkers[i].getAttribute(IMarker.LINE_NUMBER, null);
+ String type = projectMarkers[i].getType();
+ System.out.println("projectName=" + projectName);
+ System.out.println("marker: type=" + type + ",message=" + message
+ ",location=" + location + ",line=" + lineNumber);
markers.add(projectMarkers[i]);
}
}
Show replies by date