[Httpunit-commit] CVS: httpunit/test/com/meterware/servletunit ServletUnitTest.java,1.1,1.2 SessionT
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2001-11-05 18:54:54
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/servletunit
In directory usw-pr-cvs1:/tmp/cvs-serv31303/test/com/meterware/servletunit
Modified Files:
ServletUnitTest.java SessionTest.java
Log Message:
Cleaned up JDK 1.1 issues, added some WebForm enhancements
Index: ServletUnitTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/servletunit/ServletUnitTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServletUnitTest.java 2000/11/21 20:44:59 1.1
+++ ServletUnitTest.java 2001/11/05 18:54:51 1.2
@@ -41,6 +41,10 @@
super( name );
}
+ public static void assertTrue( String comment, boolean expression ) {
+ assert( comment, expression );
+ }
+
//------------------------------------ protected members ------------------------------------------
Index: SessionTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/servletunit/SessionTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SessionTest.java 2001/11/05 15:50:38 1.2
+++ SessionTest.java 2001/11/05 18:54:51 1.3
@@ -33,7 +33,7 @@
/**
* Tests the HttpSession implementation.
**/
-public class SessionTest extends TestCase {
+public class SessionTest extends ServletUnitTest {
public static void main(String args[]) {
junit.textui.TestRunner.run( suite() );
@@ -79,6 +79,7 @@
assertTrue( "Session is still marked as new", !context.getSession( session.getId() ).isNew() );
}
+
}
|