Author: dgolovin
Date: 2011-08-23 13:03:24 -0400 (Tue, 23 Aug 2011)
New Revision: 34169
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1479Test.java
Log:
added catch blocks to fail test in case of exception
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1479Test.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1479Test.java 2011-08-23
17:01:50 UTC (rev 34168)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1479Test.java 2011-08-23
17:03:24 UTC (rev 34169)
@@ -10,8 +10,11 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
+import java.io.IOException;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.WorkspaceJob;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
@@ -60,16 +63,15 @@
Job job = new WorkspaceJob("Test JBIDE-1479"){ //$NON-NLS-1$
- @Override
+ @Override
public IStatus runInWorkspace(IProgressMonitor monitor) {
- try {
- new FormatProcessorXML().formatFile(file);
- }catch (Throwable exception){
- /*
- * Here we test JBIDE-1479, if eclipse crashed we won't get any
- * exception, so we just ignore it's.
- */
- }
+ try {
+ new FormatProcessorXML().formatFile(file);
+ } catch (CoreException e) {
+ TestUtil.fail(e);
+ } catch (IOException e) {
+ TestUtil.fail(e);
+ }
return Status.OK_STATUS;
}
};
Show replies by date