[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit XMLPageTest.java,NONE,1.1 WebPageTest.ja
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2001-04-02 19:03:59
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv27919/test/com/meterware/httpunit
Modified Files:
WebPageTest.java HttpUnitSuite.java
Added Files:
XMLPageTest.java
Log Message:
Clean up errors in test
***** Error reading new file[Errno 2] No such file or directory: 'XMLPageTest.java'
Index: WebPageTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/WebPageTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- WebPageTest.java 2001/01/05 14:00:36 1.8
+++ WebPageTest.java 2001/04/02 19:03:54 1.9
@@ -2,7 +2,7 @@
/********************************************************************************************************************
* $Id$
*
-* Copyright (c) 2000, Russell Gold
+* Copyright (c) 2000-2001, Russell Gold
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
@@ -84,18 +84,6 @@
WebResponse simplePage = wc.getResponse( request );
assertEquals( "Title", "A Sample Page", simplePage.getTitle() );
assertEquals( "Character set", "iso-8859-1", simplePage.getCharacterSet() );
- }
-
-
- public void testXML() throws Exception {
- defineResource( "SimplePage.xml",
- "<?xml version=\"1.0\" ?><main><title>See me now</title></main>",
- "text/xml" );
-
- WebConversation wc = new WebConversation();
- WebRequest request = new GetMethodWebRequest( getHostPath() + "/SimplePage.xml" );
- WebResponse simplePage = wc.getResponse( request );
- Document doc = simplePage.getDOM();
}
Index: HttpUnitSuite.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/HttpUnitSuite.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- HttpUnitSuite.java 2001/02/21 19:01:07 1.11
+++ HttpUnitSuite.java 2001/04/02 19:03:54 1.12
@@ -2,7 +2,7 @@
/********************************************************************************************************************
* $Id$
*
-* Copyright (c) 2000, Russell Gold
+* Copyright (c) 2000-2001, Russell Gold
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
@@ -45,6 +45,7 @@
suite.addTest( FormSubmitTest.suite() );
suite.addTest( Base64Test.suite() );
suite.addTest( PseudoServerTest.suite() );
+ addOptionalTestCase( suite, "com.meterware.httpunit.XMLPageTest" );
addOptionalTestCase( suite, "com.meterware.httpunit.FileUploadTest" );
return suite;
}
@@ -54,7 +55,7 @@
try {
suite.addTest( new TestSuite( Class.forName( testCaseName ) ) );
} catch (ClassNotFoundException e) {
- System.out.println( "Test suite " + testCaseName + " not found; skipping." );
+ System.out.println( "Note: test suite " + testCaseName + " not found; skipping." );
}
}
|