Added RunTimeException handling
git-svn-id: svn://10.0.0.236/trunk@58366 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -24,6 +24,7 @@ package org.mozilla.dom.test;
|
||||
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
import java.lang.*;
|
||||
import org.mozilla.dom.test.*;
|
||||
import org.mozilla.dom.*;
|
||||
import org.w3c.dom.*;
|
||||
@@ -109,6 +110,10 @@ public class CharacterDataImpl_appendData_String_0 extends BWBaseTest implements
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -102,6 +102,10 @@ public class CharacterDataImpl_deleteData_int_int_0 extends BWBaseTest implement
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -104,6 +104,10 @@ public class CharacterDataImpl_deleteData_int_int_1 extends BWBaseTest implement
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -104,6 +104,10 @@ public class CharacterDataImpl_deleteData_int_int_2 extends BWBaseTest implement
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -104,6 +104,10 @@ public class CharacterDataImpl_deleteData_int_int_3 extends BWBaseTest implement
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
package org.mozilla.dom.test;
|
||||
|
||||
import java.util.*;
|
||||
import java.lang.*;
|
||||
import java.io.*;
|
||||
import org.mozilla.dom.test.*;
|
||||
import org.mozilla.dom.*;
|
||||
@@ -104,6 +105,11 @@ public class CharacterDataImpl_deleteData_int_int_4 extends BWBaseTest implement
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
r.printStackTrace();
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -104,6 +104,10 @@ public class CharacterDataImpl_deleteData_int_int_5 extends BWBaseTest implement
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ public class CharacterDataImpl_deleteData_int_int_6 extends BWBaseTest implement
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ public class CharacterDataImpl_deleteData_int_int_7 extends BWBaseTest implement
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ public class CharacterDataImpl_deleteData_int_int_8 extends BWBaseTest implement
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -100,6 +100,10 @@ public class CharacterDataImpl_getData extends BWBaseTest implements Execution
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -104,6 +104,10 @@ public class CharacterDataImpl_insertData_int_String_0 extends BWBaseTest implem
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -104,6 +104,10 @@ public class CharacterDataImpl_insertData_int_String_1 extends BWBaseTest implem
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ public class CharacterDataImpl_insertData_int_String_2 extends BWBaseTest implem
|
||||
}
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -105,6 +105,10 @@ public class CharacterDataImpl_insertData_int_String_3 extends BWBaseTest implem
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -104,6 +104,10 @@ public class CharacterDataImpl_insertData_int_String_4 extends BWBaseTest implem
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -104,6 +104,10 @@ public class CharacterDataImpl_insertData_int_String_5 extends BWBaseTest implem
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -106,6 +106,10 @@ public class CharacterDataImpl_replaceData_int_int_String_0 extends BWBaseTest i
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -109,6 +109,10 @@ public class CharacterDataImpl_replaceData_int_int_String_1 extends BWBaseTest i
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -106,6 +106,10 @@ public class CharacterDataImpl_replaceData_int_int_String_10 extends BWBaseTest
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -112,6 +112,10 @@ System.out.println("str is " + str);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -106,6 +106,10 @@ public class CharacterDataImpl_replaceData_int_int_String_12 extends BWBaseTest
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -112,6 +112,10 @@ System.out.println("str is " + str);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -106,6 +106,10 @@ public class CharacterDataImpl_replaceData_int_int_String_14 extends BWBaseTest
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -113,6 +113,10 @@ System.out.println("str is " + str);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -106,6 +106,10 @@ public class CharacterDataImpl_replaceData_int_int_String_16 extends BWBaseTest
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -111,6 +111,10 @@ System.out.println("str is " + str);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -106,6 +106,10 @@ public class CharacterDataImpl_replaceData_int_int_String_2 extends BWBaseTest i
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -106,6 +106,10 @@ public class CharacterDataImpl_replaceData_int_int_String_3 extends BWBaseTest i
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -106,6 +106,10 @@ public class CharacterDataImpl_replaceData_int_int_String_4 extends BWBaseTest i
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -112,6 +112,10 @@ System.out.println("str is " + str);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -106,6 +106,10 @@ public class CharacterDataImpl_replaceData_int_int_String_6 extends BWBaseTest i
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -107,6 +107,10 @@ public class CharacterDataImpl_replaceData_int_int_String_7 extends BWBaseTest i
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -107,6 +107,10 @@ public class CharacterDataImpl_replaceData_int_int_String_8 extends BWBaseTest i
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -106,6 +106,10 @@ public class CharacterDataImpl_replaceData_int_int_String_9 extends BWBaseTest i
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ public class CharacterDataImpl_setData_String_0 extends BWBaseTest implements Ex
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -102,6 +102,10 @@ public class CharacterDataImpl_setData_String_1 extends BWBaseTest implements Ex
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -104,6 +104,10 @@ System.out.println("getstr is " + getstr);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ System.out.println("getstr is " + getstr);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ System.out.println("getstr is " + getstr);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ System.out.println("getstr is " + getstr);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ System.out.println("getstr is " + getstr);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ System.out.println("getstr is " + getstr);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ System.out.println("getstr is " + getstr);
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -93,16 +93,14 @@ public class CharacterDataImpl_substringData_int_int_7 extends BWBaseTest implem
|
||||
TestLoader.logErrPrint("CharacterData should not be null....");
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
|
||||
System.out.println("offset is " + offset + " count is " + count);
|
||||
int x = offset + count;
|
||||
System.out.println("x is " + x);
|
||||
System.out.println("getstr is " + getstr);
|
||||
|
||||
}
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.PASSED;
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -103,6 +103,10 @@ public class CharacterDataImpl_substringData_int_int_8 extends BWBaseTest implem
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException " );
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -88,7 +88,11 @@ public class DocumentImpl_createAttribute_String_0 extends BWBaseTest implements
|
||||
}
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -89,6 +89,10 @@ public class DocumentImpl_createAttribute_String_1 extends BWBaseTest implements
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -88,7 +88,11 @@ public class DocumentImpl_createCDATASection_String_0 extends BWBaseTest impleme
|
||||
}
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -79,6 +79,7 @@ public class DocumentImpl_createComment_String_0 extends BWBaseTest implements E
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Comment dc = d.createComment(null);
|
||||
if (dc != null) {
|
||||
TestLoader.logErrPrint("Document 'createCommnet(null) is not NULL..");
|
||||
@@ -86,6 +87,14 @@ public class DocumentImpl_createComment_String_0 extends BWBaseTest implements E
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document 'createComment(null) is NULL..");
|
||||
}
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class DocumentImpl_createComment_String_1 extends BWBaseTest implements E
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Comment dc = d.createComment("dummy comment string");
|
||||
if (dc == null) {
|
||||
TestLoader.logErrPrint("Document 'createCommnet(dummy)' is not NULL..");
|
||||
@@ -85,6 +86,14 @@ public class DocumentImpl_createComment_String_1 extends BWBaseTest implements E
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document 'createComment(dummy)' is NULL..");
|
||||
}
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class DocumentImpl_createDocumentFragment extends BWBaseTest implements E
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
DocumentFragment df = d.createDocumentFragment();
|
||||
if (df == null) {
|
||||
TestLoader.logErrPrint("Document 'createDocumentFragment()' is NULL..");
|
||||
@@ -85,6 +86,11 @@ public class DocumentImpl_createDocumentFragment extends BWBaseTest implements E
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document 'createComment(dummy)' 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;
|
||||
|
||||
@@ -88,7 +88,11 @@ public class DocumentImpl_createElement_String_0 extends BWBaseTest implements E
|
||||
}
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -89,6 +89,10 @@ public class DocumentImpl_createElement_String_1 extends BWBaseTest implements E
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -87,7 +87,11 @@ public class DocumentImpl_createEntityReference_String_0 extends BWBaseTest impl
|
||||
}
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -89,6 +89,10 @@ public class DocumentImpl_createEntityReference_String_1 extends BWBaseTest impl
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -90,6 +90,10 @@ public class DocumentImpl_createProcessingInstruction_String_String_0 extends BW
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -90,6 +90,10 @@ public class DocumentImpl_createProcessingInstruction_String_String_1 extends BW
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -90,6 +90,10 @@ public class DocumentImpl_createProcessingInstruction_String_String_2 extends BW
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -89,6 +89,10 @@ public class DocumentImpl_createProcessingInstruction_String_String_3 extends BW
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -79,6 +79,7 @@ public class DocumentImpl_createTextNode_String_0 extends BWBaseTest implements
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Text t = d.createTextNode(null);
|
||||
if (t != null) {
|
||||
TestLoader.logErrPrint("Document 'createTextNode(null) is not NULL..");
|
||||
@@ -86,6 +87,11 @@ public class DocumentImpl_createTextNode_String_0 extends BWBaseTest implements
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document 'createTextNode(null)' is NULL..");
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class DocumentImpl_createTextNode_String_1 extends BWBaseTest implements
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Text t = d.createTextNode("mytxt");
|
||||
if (t == null) {
|
||||
TestLoader.logErrPrint("Document 'createTextNode(mytxt) is NULL..");
|
||||
@@ -86,6 +87,11 @@ public class DocumentImpl_createTextNode_String_1 extends BWBaseTest implements
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document 'createTextNode(mytxt)' 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;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class DocumentImpl_getDoctype extends BWBaseTest implements Execution
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
DocumentType dt = d.getDoctype();
|
||||
if (dt == null) {
|
||||
TestLoader.logErrPrint("Document Type is NULL..");
|
||||
@@ -86,6 +87,11 @@ public class DocumentImpl_getDoctype extends BWBaseTest implements Execution
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document Type is " + dt.getName());
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -79,6 +79,8 @@ public class DocumentImpl_getDocumentElement extends BWBaseTest implements Execu
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
Element e = d.getDocumentElement();
|
||||
if (e == null) {
|
||||
TestLoader.logErrPrint("Document Element is NULL..");
|
||||
@@ -86,6 +88,11 @@ public class DocumentImpl_getDocumentElement extends BWBaseTest implements Execu
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document Element is " + e.getTagName());
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class DocumentImpl_getElementsByTagName_String_0 extends BWBaseTest imple
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
NodeList dt = d.getElementsByTagName(null);
|
||||
if (dt != null) {
|
||||
TestLoader.logErrPrint("Document 'getElementsByTagName(null)' is NOT NULL..");
|
||||
@@ -85,6 +86,12 @@ public class DocumentImpl_getElementsByTagName_String_0 extends BWBaseTest imple
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document 'getElementsByTagName(null)' is NULL..");
|
||||
}
|
||||
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class DocumentImpl_getElementsByTagName_String_1 extends BWBaseTest imple
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
NodeList dt = d.getElementsByTagName("*");
|
||||
if (dt == null) {
|
||||
TestLoader.logErrPrint("Document 'getElementsByTagName(*)' is NULL..");
|
||||
@@ -86,6 +87,11 @@ public class DocumentImpl_getElementsByTagName_String_1 extends BWBaseTest imple
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document 'getElementsByTagName(*)' 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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class DocumentTypeImpl_getEntities extends BWBaseTest implements Executio
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
DocumentType dt = d.getDoctype();
|
||||
if (dt == null) {
|
||||
TestLoader.logErrPrint("Document Type is NULL..");
|
||||
@@ -89,6 +90,11 @@ public class DocumentTypeImpl_getEntities extends BWBaseTest implements Executio
|
||||
else
|
||||
TestLoader.logErrPrint("DocumentType 'getEntities' 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;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class DocumentTypeImpl_getName extends BWBaseTest implements Execution
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
DocumentType dt = d.getDoctype();
|
||||
if (dt == null) {
|
||||
TestLoader.logErrPrint("Document Type is NULL..");
|
||||
@@ -91,6 +92,11 @@ public class DocumentTypeImpl_getName extends BWBaseTest implements Execution
|
||||
} else
|
||||
TestLoader.logErrPrint("DocumentType 'getName' is " + name);
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class DocumentTypeImpl_getNotations extends BWBaseTest implements Executi
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
DocumentType dt = d.getDoctype();
|
||||
if (dt == null) {
|
||||
TestLoader.logErrPrint("Document Type is NULL..");
|
||||
@@ -89,6 +90,11 @@ public class DocumentTypeImpl_getNotations extends BWBaseTest implements Executi
|
||||
else
|
||||
TestLoader.logErrPrint("DocumentType 'getNotations' 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;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class ElementImpl_getAttributeNode_String_0 extends BWBaseTest implements
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Element e = d.getDocumentElement();
|
||||
if (e == null) {
|
||||
TestLoader.logErrPrint("Document Element is NULL..");
|
||||
@@ -89,6 +90,11 @@ public class ElementImpl_getAttributeNode_String_0 extends BWBaseTest implements
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class ElementImpl_getAttributeNode_String_1 extends BWBaseTest implements
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Element e = d.getDocumentElement();
|
||||
if (e == null) {
|
||||
TestLoader.logErrPrint("Document Element is NULL..");
|
||||
@@ -90,6 +91,11 @@ public class ElementImpl_getAttributeNode_String_1 extends BWBaseTest implements
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class ElementImpl_getAttribute_String_0 extends BWBaseTest implements Exe
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Element e = d.getDocumentElement();
|
||||
if (e == null) {
|
||||
TestLoader.logErrPrint("Document Element is NULL..");
|
||||
@@ -89,6 +90,11 @@ public class ElementImpl_getAttribute_String_0 extends BWBaseTest implements Exe
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class ElementImpl_getAttribute_String_1 extends BWBaseTest implements Exe
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Element e = d.getDocumentElement();
|
||||
if (e == null) {
|
||||
TestLoader.logErrPrint("Document Element is NULL..");
|
||||
@@ -97,6 +98,11 @@ public class ElementImpl_getAttribute_String_1 extends BWBaseTest implements Exe
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class ElementImpl_getElementsByTagName_String_0 extends BWBaseTest implem
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Element e = d.getDocumentElement();
|
||||
if (e == null) {
|
||||
TestLoader.logErrPrint("Document Element is NULL..");
|
||||
@@ -89,6 +90,11 @@ public class ElementImpl_getElementsByTagName_String_0 extends BWBaseTest implem
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class ElementImpl_getElementsByTagName_String_1 extends BWBaseTest implem
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Element e = d.getDocumentElement();
|
||||
if (e == null) {
|
||||
TestLoader.logErrPrint("Document Element is NULL..");
|
||||
@@ -89,6 +90,11 @@ public class ElementImpl_getElementsByTagName_String_1 extends BWBaseTest implem
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class ElementImpl_getTagName extends BWBaseTest implements Execution
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Element e = d.getDocumentElement();
|
||||
if (e == null) {
|
||||
TestLoader.logErrPrint("Document Element is NULL..");
|
||||
@@ -91,6 +92,11 @@ public class ElementImpl_getTagName extends BWBaseTest implements Execution
|
||||
} else
|
||||
TestLoader.logErrPrint("Element 'getTagName() is " + str);
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class ElementImpl_normalize extends BWBaseTest implements Execution
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
Element e = d.getDocumentElement();
|
||||
if (e == null) {
|
||||
TestLoader.logErrPrint("Document Element is NULL..");
|
||||
@@ -86,6 +87,11 @@ public class ElementImpl_normalize extends BWBaseTest implements Execution
|
||||
} else {
|
||||
e.normalize();
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -101,6 +101,10 @@ public class ElementImpl_removeAttributeNode_Attr_0 extends BWBaseTest implement
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -107,6 +107,10 @@ public class ElementImpl_removeAttributeNode_Attr_1 extends BWBaseTest implement
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -98,6 +98,10 @@ public class ElementImpl_removeAttribute_String_0 extends BWBaseTest implements
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -101,6 +101,10 @@ public class ElementImpl_removeAttribute_String_1 extends BWBaseTest implements
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -95,6 +95,10 @@ public class ElementImpl_setAttributeNode_Attr_0 extends BWBaseTest implements E
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -107,6 +107,10 @@ public class ElementImpl_setAttributeNode_Attr_1 extends BWBaseTest implements E
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -90,6 +90,10 @@ public class ElementImpl_setAttribute_String_String_0 extends BWBaseTest impleme
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -100,6 +100,10 @@ public class ElementImpl_setAttribute_String_String_1 extends BWBaseTest impleme
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -93,7 +93,11 @@ public class ElementImpl_setAttribute_String_String_2 extends BWBaseTest impleme
|
||||
}
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
|
||||
@@ -78,6 +78,7 @@ public class NamedNodeMapImpl_getLength extends BWBaseTest implements Execution
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
String attrName = "TARGET";
|
||||
Attr a = d.createAttribute(attrName);
|
||||
if (a == null) {
|
||||
@@ -106,6 +107,11 @@ public class NamedNodeMapImpl_getLength extends BWBaseTest implements Execution
|
||||
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class NamedNodeMapImpl_getNamedItem_String_0 extends BWBaseTest implement
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
String attrName = "TARGET";
|
||||
Attr a = d.createAttribute(attrName);
|
||||
if (a == null) {
|
||||
@@ -110,6 +111,11 @@ public class NamedNodeMapImpl_getNamedItem_String_0 extends BWBaseTest implement
|
||||
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class NamedNodeMapImpl_getNamedItem_String_1 extends BWBaseTest implement
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
String attrName = "TARGET";
|
||||
Attr a = d.createAttribute(attrName);
|
||||
if (a == null) {
|
||||
@@ -111,6 +112,11 @@ public class NamedNodeMapImpl_getNamedItem_String_1 extends BWBaseTest implement
|
||||
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class NamedNodeMapImpl_item_int_0 extends BWBaseTest implements Execution
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
String attrName = "TARGET";
|
||||
Attr a = d.createAttribute(attrName);
|
||||
if (a == null) {
|
||||
@@ -111,6 +112,11 @@ public class NamedNodeMapImpl_item_int_0 extends BWBaseTest implements Execution
|
||||
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class NamedNodeMapImpl_item_int_1 extends BWBaseTest implements Execution
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
String attrName = "TARGET";
|
||||
Attr a = d.createAttribute(attrName);
|
||||
if (a == null) {
|
||||
@@ -110,6 +111,11 @@ public class NamedNodeMapImpl_item_int_1 extends BWBaseTest implements Execution
|
||||
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class NamedNodeMapImpl_item_int_2 extends BWBaseTest implements Execution
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
String attrName = "TARGET";
|
||||
Attr a = d.createAttribute(attrName);
|
||||
if (a == null) {
|
||||
@@ -111,6 +112,11 @@ public class NamedNodeMapImpl_item_int_2 extends BWBaseTest implements Execution
|
||||
TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -115,6 +115,10 @@ public class NamedNodeMapImpl_removeNamedItem_String_0 extends BWBaseTest implem
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document is NULL..");
|
||||
|
||||
@@ -115,6 +115,10 @@ public class NamedNodeMapImpl_removeNamedItem_String_1 extends BWBaseTest implem
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document is NULL..");
|
||||
|
||||
@@ -115,6 +115,10 @@ public class NamedNodeMapImpl_setNamedItem_Node_0 extends BWBaseTest implements
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.PASSED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document is NULL..");
|
||||
|
||||
@@ -123,6 +123,10 @@ public class NamedNodeMapImpl_setNamedItem_Node_1 extends BWBaseTest implements
|
||||
} catch (DOMException e) {
|
||||
TestLoader.logErrPrint("Caught DOMException");
|
||||
return BWBaseTest.FAILED;
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
TestLoader.logErrPrint("Document is NULL..");
|
||||
|
||||
@@ -78,6 +78,7 @@ public class NodeImpl_appendChild_Node_0 extends BWBaseTest implements Execution
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
String elname = "SCRIPT";
|
||||
Element e = d.createElement(elname);
|
||||
if (e == null)
|
||||
@@ -106,6 +107,11 @@ public class NodeImpl_appendChild_Node_0 extends BWBaseTest implements Execution
|
||||
TestLoader.logErrPrint("Could not find Node " + nodename);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.PASSED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class NodeImpl_appendChild_Node_1 extends BWBaseTest implements Execution
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
String elname = "SCRIPT";
|
||||
Element e = d.createElement(elname);
|
||||
if (e == null)
|
||||
@@ -106,6 +107,11 @@ public class NodeImpl_appendChild_Node_1 extends BWBaseTest implements Execution
|
||||
TestLoader.logErrPrint("Could not find Node " + nodename);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
@@ -78,6 +78,7 @@ public class NodeImpl_cloneNode_boolean_0 extends BWBaseTest implements Executio
|
||||
Document d = (Document)tobj;
|
||||
if (d != null)
|
||||
{
|
||||
try {
|
||||
String elname = "SCRIPT";
|
||||
Element e = d.createElement(elname);
|
||||
if (e == null)
|
||||
@@ -106,6 +107,11 @@ public class NodeImpl_cloneNode_boolean_0 extends BWBaseTest implements Executio
|
||||
TestLoader.logErrPrint("Could not find Node " + nodename);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} catch (RuntimeException r) {
|
||||
String msg = "Caught RuntimeException " + r ;
|
||||
TestLoader.logErrPrint(msg);
|
||||
return BWBaseTest.FAILED;
|
||||
}
|
||||
} else {
|
||||
System.out.println("Document is NULL..");
|
||||
return BWBaseTest.FAILED;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user