dirkv 01/08/09 06:30:38
Modified: src/tests/client TestDOMUtils.java
Log:
replace depricated methods
Revision Changes Path
1.3 +9 -9 jakarta-slide/src/tests/client/TestDOMUtils.java
Index: TestDOMUtils.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/tests/client/TestDOMUtils.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TestDOMUtils.java 2001/02/15 17:45:20 1.2
+++ TestDOMUtils.java 2001/08/09 13:30:38 1.3
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/tests/client/TestDOMUtils.java,v 1.2
2001/02/15 17:45:20 remm Exp $
- * $Revision: 1.2 $
- * $Date: 2001/02/15 17:45:20 $
+ * $Header: /home/cvs/jakarta-slide/src/tests/client/TestDOMUtils.java,v 1.3
2001/08/09 13:30:38 dirkv Exp $
+ * $Revision: 1.3 $
+ * $Date: 2001/08/09 13:30:38 $
*
* ====================================================================
*
@@ -152,21 +152,21 @@
Document document = parse(xml);
Element root = document.getDocumentElement();
Element child = (Element) root.getFirstChild();
- assert("Text value should be \"Joe Schmoe\", and is \"" +
+ assertTrue("Text value should be \"Joe Schmoe\", and is \"" +
DOMUtils.getTextValue(child) + "\" instead",
"Joe Schmoe".equals(DOMUtils.getTextValue(child)));
}
public void testFindDavPrefix1() throws Exception {
Document document = parse(xml1);
- assert("DAV Prefix should be \"D:\", and is \"" +
+ assertTrue("DAV Prefix should be \"D:\", and is \"" +
DOMUtils.findDavPrefix(document) + "\" instead",
"D:".equals(DOMUtils.findDavPrefix(document)));
}
public void testFindDavPrefix2() throws Exception {
Document document = parse(xml2);
- assert("DAV Prefix should be \"\", and is \"" +
+ assertTrue("DAV Prefix should be \"\", and is \"" +
DOMUtils.findDavPrefix(document) + "\" instead",
"".equals(DOMUtils.findDavPrefix(document)));
}
@@ -174,7 +174,7 @@
public void testFindDavPrefix3() throws Exception {
try {
Document document = parse(xml3);
- assert("DAV Prefix should be \"\", and is \"" +
+ assertTrue("DAV Prefix should be \"\", and is \"" +
DOMUtils.findDavPrefix(document) + "\" instead",
"".equals(DOMUtils.findDavPrefix(document)));
} catch (SAXException e) {
@@ -188,7 +188,7 @@
NodeList list = document.getElementsByTagName(prefix + "status");
String statusText = DOMUtils.getTextValue(list.item(0));
int status = DOMUtils.parseStatus(statusText);
- assert("Status should be \"200\" and is \"" +
+ assertTrue("Status should be \"200\" and is \"" +
status + "\" instead", status == 200);
}
@@ -196,7 +196,7 @@
Document document = parse(xml1);
String namespace = DOMUtils.getElementNamespaceURI(
document.getDocumentElement());
- assert("Namespace should be \"DAV:\" and is \"" +
+ assertTrue("Namespace should be \"DAV:\" and is \"" +
namespace + "\" instead",
namespace != null && namespace.equals("DAV:"));
}