Revision: 556
Author: solsson
Date: 2006-08-02 06:44:47 -0700 (Wed, 02 Aug 2006)
ViewCVS: http://svn.sourceforge.net/jwebunit/?rev=556&view=rev
Log Message:
-----------
|enter| rows now call setTextField instead of setFormElement, because the old
one is deprecated. This means that checkboxes, dropdowns and radio buttons must
be modified with |select| rows.
The module can now be packaged and installed in repository.
Modified Paths:
--------------
trunk/jwebfit/src/main/java/net/sourceforge/jwebunit/fit/WebFixture.java
trunk/jwebfit/src/test/fit/testTable.fit
trunk/jwebfit/src/test/java/net/sourceforge/jwebunit/fit/testservlets/PersonalInfoPostServlet.java
Removed Paths:
-------------
trunk/jwebfit/maven.xml
trunk/jwebfit/project.xml
Deleted: trunk/jwebfit/maven.xml
===================================================================
--- trunk/jwebfit/maven.xml 2006-08-02 13:15:46 UTC (rev 555)
+++ trunk/jwebfit/maven.xml 2006-08-02 13:44:47 UTC (rev 556)
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns:j="jelly:core"
- xmlns:ant="jelly:ant">
-
- <!-- run the sample site with jetty -->
- <goal name="runsite">
- <attainGoal name="test:compile"/>
- <ant:java fork="false"
- classname="net.sourceforge.jwebunit.fit.RunSite">
- <ant:classpath>
- <ant:path refid="maven.dependency.classpath"/>
- <ant:pathelement path="${maven.build.dest}"/>
- <ant:pathelement path="${maven.test.dest}"/>
- </ant:classpath>
- </ant:java>
- </goal>
-
-</project>
\ No newline at end of file
Deleted: trunk/jwebfit/project.xml
===================================================================
--- trunk/jwebfit/project.xml 2006-08-02 13:15:46 UTC (rev 555)
+++ trunk/jwebfit/project.xml 2006-08-02 13:44:47 UTC (rev 556)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/3.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/3.0.0
http://maven.apache.org/maven-v3_0_0.xsd">
- <extend>../project.xml</extend>
- <artifactId>jwebfit</artifactId>
- <dependencies>
- <dependency>
- <groupId>${pom.groupId}</groupId>
- <artifactId>jwebunit</artifactId>
- <version>${pom.currentVersion}</version>
- </dependency>
- <dependency>
- <groupId>fit</groupId>
- <artifactId>fit</artifactId>
- <version>1.0</version>
- <url>http://sourceforge.net/projects/fit/</url>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file
Modified:
trunk/jwebfit/src/main/java/net/sourceforge/jwebunit/fit/WebFixture.java
===================================================================
--- trunk/jwebfit/src/main/java/net/sourceforge/jwebunit/fit/WebFixture.java
2006-08-02 13:15:46 UTC (rev 555)
+++ trunk/jwebfit/src/main/java/net/sourceforge/jwebunit/fit/WebFixture.java
2006-08-02 13:44:47 UTC (rev 556)
@@ -121,7 +121,7 @@
}
public void enter() throws Exception {
- tester.setFormElement(cells.more.text(), cells.more.more.text());
+ tester.setTextField(cells.more.text(), cells.more.more.text());
}
public void select() {
Modified: trunk/jwebfit/src/test/fit/testTable.fit
===================================================================
--- trunk/jwebfit/src/test/fit/testTable.fit 2006-08-02 13:15:46 UTC (rev
555)
+++ trunk/jwebfit/src/test/fit/testTable.fit 2006-08-02 13:44:47 UTC (rev
556)
@@ -15,8 +15,12 @@
Use a table fixture to validate the table containing the results.
-|net.sourceforge.jwebunit.fit.PersonalInfoTableFixture||||
-|name | citizenship | state | sex |
-|Jim | a citizen | Tennessee | male |
-|Fred Evans | a citizen | Tennessee | male |
-|Rebecca VonStavoren | not a citizen | North Carolina | female |
\ No newline at end of file
+Table fixture not supported with jWebUnit 2.
+Should be possible to write a generic table assertion fixture,
+instead of porting the old one that needs a subclass for each table.
+
+-|net.sourceforge.jwebunit.fit.PersonalInfoTableFixture||||
+-|name | citizenship | state | sex |
+-|Jim | a citizen | Tennessee | male |
+-|Fred Evans | a citizen | Tennessee | male |
+-|Rebecca VonStavoren | not a citizen | North Carolina | female |
Modified:
trunk/jwebfit/src/test/java/net/sourceforge/jwebunit/fit/testservlets/PersonalInfoPostServlet.java
===================================================================
---
trunk/jwebfit/src/test/java/net/sourceforge/jwebunit/fit/testservlets/PersonalInfoPostServlet.java
2006-08-02 13:15:46 UTC (rev 555)
+++
trunk/jwebfit/src/test/java/net/sourceforge/jwebunit/fit/testservlets/PersonalInfoPostServlet.java
2006-08-02 13:44:47 UTC (rev 556)
@@ -13,9 +13,6 @@
protected void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
response.setContentType("text/html");
- for (Object param : request.getParameterMap().keySet()) {
- System.out.println("param: " + param + " = " +
request.getParameterMap().get(param));
- }
String citizenship = "not a citizen";
if (request.getParameter("citizenCheckbox") != null &&
request.getParameterValues("citizenCheckbox")[0].equals("on")) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development