Community
Participate
Working Groups
A number of jUnits are failing for TestContentTypeDetectionForXML because of a StringIndexOutOfBoundsException being thrown from XMLContentDescriber. Disabling testFile106() will resolve the series of failures caused by the org.eclipse.core.runtime.xml content type being disabled. Also fixing testFile120WS() as its content type is no longer described by XMLContentDescriber.
Created attachment 120105 [details] patch removing TestContentTypeDetectionForXML I ended up temporarily removing the entire TestContentTypeDetectionForXML test because one of the workspaces opened for another test contained MalformedNoEncoding.xml, which when an Icon was trying to be associated with the file, would cause the org.eclipse.core.runtime.xml content type to be disabled and cause other tests in TestContentTypeDetectionForXML to fail.
Is this test suite being added back in to be addressed in 3.1M5? As an adopter I have concerns when tests are removed just to get something green. It doesn't address the real problem, and the tests are typically never added back in.
Yes, but only after it's been adjusted to compensate for what the platform describer now supports/doesn't support.
The test suite has been added back in, but testFile106 still fails due to changes in the XMLContentDescriber, which no longer identifies XML files with an empty encoding as XML content. It would be nice if our ContentDescriberForXML would get an opportunity to run and try and identify this case as an XML content type. I think ultimately, it will depend on bug 251786 being addressed.
(In reply to comment #4) > The test suite has been added back in, but testFile106 still fails due to > changes in the XMLContentDescriber, which no longer identifies XML files with > an empty encoding as XML content. > > It would be nice if our ContentDescriberForXML would get an opportunity to run > and try and identify this case as an XML content type. I think ultimately, it > will depend on bug 251786 being addressed. > Nick...a temporary work around might be to create a Fragment to be added to patch up the file, and then apply the correct fix once this is corrected in the platform. Otherwise the test will just fail when it gets released.
Upping the priority and will revisit early in M7.
Many tests still disabled in TestContentTypeDetectionForXML in WTP 3.2
Resolving for now. This has been bumped repeatedly, but cannot be resolved without its dependency.