Added RunTimeException handling
git-svn-id: svn://10.0.0.236/trunk@58366 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -78,6 +78,7 @@ public class DocumentImpl_getImplementation extends BWBaseTest implements Execut
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
DOMImplementation dt = d.getImplementation();
|
||||
if (dt == null) {
|
||||
TestLoader.logErrPrint("Document Implementation is NULL..");
|
||||
@@ -85,6 +86,11 @@ public class DocumentImpl_getImplementation extends BWBaseTest implements Execut
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document Implementation is NOT NULL...");
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
Reference in New Issue
Block a user