Author: sergeyhalipov
Date: 2007-12-10 15:50:58 -0500 (Mon, 10 Dec 2007)
New Revision: 4677
Modified:
branches/3.1.x/ui/listShuttle/src/test/java/org/richfaces/component/ListShuttleComponentTest.java
Log:
Tests for list shuttle changed.
Modified:
branches/3.1.x/ui/listShuttle/src/test/java/org/richfaces/component/ListShuttleComponentTest.java
===================================================================
---
branches/3.1.x/ui/listShuttle/src/test/java/org/richfaces/component/ListShuttleComponentTest.java 2007-12-10
20:39:32 UTC (rev 4676)
+++
branches/3.1.x/ui/listShuttle/src/test/java/org/richfaces/component/ListShuttleComponentTest.java 2007-12-10
20:50:58 UTC (rev 4677)
@@ -186,9 +186,6 @@
}
});
- HtmlPage view = renderView();
- HtmlAnchor anchor =
(HtmlAnchor)view.getDocumentElement().getHtmlElementById(command.getClientId(facesContext));
- anchor.click();
externalContext.addRequestParameterMap(listShuttle.getClientId(facesContext),
"sa1:2");
externalContext.addRequestParameterMap(listShuttle.getClientId(facesContext),
"0:1");
externalContext.addRequestParameterMap(listShuttle.getClientId(facesContext),
":");
@@ -202,11 +199,6 @@
* @throws Exception
*/
public void testUpdate() throws Exception {
- HtmlPage page = renderView();
- assertNotNull(page);
-
- HtmlAnchor anchor =
(HtmlAnchor)page.getDocumentElement().getHtmlElementById(command.getClientId(facesContext));
- anchor.click();
externalContext.addRequestParameterMap(listShuttle.getClientId(facesContext),
"sa1:2");
externalContext.addRequestParameterMap(listShuttle.getClientId(facesContext),
":");
externalContext.addRequestParameterMap(listShuttle.getClientId(facesContext),
"0:1");
@@ -235,12 +227,6 @@
}
});
-
- HtmlPage page = renderView();
- assertNotNull(page);
-
- HtmlAnchor anchor =
(HtmlAnchor)page.getDocumentElement().getHtmlElementById(command.getClientId(facesContext));
- anchor.click();
externalContext.addRequestParameterMap(listShuttle.getClientId(facesContext),
"sa1:2");
externalContext.addRequestParameterMap(listShuttle.getClientId(facesContext),
":");
externalContext.addRequestParameterMap(listShuttle.getClientId(facesContext),
"0:1");
Show replies by date