[jbosstools-dev] Errors in org.jboss.ide.eclipse.as.test

Snjezana Peco snjezana.peco at redhat.com
Mon Oct 20 18:25:51 EDT 2008


1) ProjectRuntimeTest.testProjectRuntime() - 
java.lang.UnsupportedOperationException

The verifyClasspathEntries method converts an array into a list as follows:
List<String> list = Arrays.asList(required);
This line creates a read-only list and the verifyClasspathEntries method 
tries to remove an item from the list.

2) JBIDE2512aTest.testJBIDE2512a() - NPE

The AbstractDeploymentTest.copy method , line 146
tmp = getFileLocation("projects/TempProject/" + sourceProjectName);
The tmp file doesn't exist because sourceProjectName is an array variable.

Attached is a patch that fixes these errors.
I haven't checked test failures.

Snjeza
PS
These tests make changes in the org.jboss.ide.eclipse.as.test plugin 
that can break SVN (subclipse) when  running in the PDE Runtime workbench.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: org.jboss.ide.eclipse.as.test.patch
Url: http://lists.jboss.org/pipermail/jbosstools-dev/attachments/20081021/7e98cdf7/attachment.pl 


More information about the jbosstools-dev mailing list