/*
- * $Header: /cvsroot/securityfilter/securityfilter/src/test/org/securityfilter/test/http/form/PostMethodTest.java,v 1.1 2003/06/14 14:12:32 maxcooper Exp $
- * $Revision: 1.1 $
- * $Date: 2003/06/14 14:12:32 $
+ * $Header: /cvsroot/securityfilter/securityfilter/src/test/org/securityfilter/test/http/form/PostMethodTest.java,v 1.2 2003/07/07 04:18:49 maxcooper Exp $
+ * $Revision: 1.2 $
+ * $Date: 2003/07/07 04:18:49 $
*
* ====================================================================
* The SecurityFilter Software License, Version 1.1
package org.securityfilter.test.http.form;
-import org.securityfilter.test.http.TestBase;
-import org.securityfilter.example.Constants;
import com.meterware.httpunit.*;
+import org.securityfilter.example.Constants;
+import org.securityfilter.test.http.TestBase;
/**
* LogoutTest - tests the logout functionality.
*
* @author Max Cooper (max@maxcooper.com)
- * @version $Revision: 1.1 $ $Date: 2003/06/14 14:12:32 $
+ * @version $Revision: 1.2 $ $Date: 2003/07/07 04:18:49 $
*/
public class PostMethodTest extends TestBase {
private static final String POST_VALUE = "it works!";
assertPageTitle(response, Constants.SECURE_TITLE);
// make sure the item we submitted is present
- HTMLElement postedValue = response.getElementWithID(Constants.SECURE_POSTED_VALUE_ID);
+ TableCell postedValue = (TableCell) response.getElementWithID(Constants.SECURE_POSTED_VALUE_ID);
assertNotNull("POSTed parameter not found in reponse", postedValue);
- System.out.println("postedValue.toString() = " + postedValue.toString());
- System.out.println("postedValue.getID() = " + postedValue.getID());
- System.out.println("postedValue.getName() = " + postedValue.getName());
- System.out.println("postedValue.getTitle() = " + postedValue.getTitle());
- System.out.println("postedValue.getClass().getName() = " + postedValue.getClass().getName());
+ System.out.println("postedValue.asText() = \"" + postedValue.asText() + "\"");
+ assertEquals("POSTed parameter did not have the right value", postedValue.asText(), POST_VALUE);
}
}