Author: A.Skokov
Date: 2007-05-03 11:01:12 -0400 (Thu, 03 May 2007)
New Revision: 637
Modified:
trunk/richfaces/spacer/src/test/java/org/richfaces/component/SpacerComponentTest.java
Log:
test fixed
Modified:
trunk/richfaces/spacer/src/test/java/org/richfaces/component/SpacerComponentTest.java
===================================================================
---
trunk/richfaces/spacer/src/test/java/org/richfaces/component/SpacerComponentTest.java 2007-05-03
14:56:08 UTC (rev 636)
+++
trunk/richfaces/spacer/src/test/java/org/richfaces/component/SpacerComponentTest.java 2007-05-03
15:01:12 UTC (rev 637)
@@ -43,7 +43,7 @@
/**
* Create the test case
- *
+ *
* @param testName
* name of the test case
*/
@@ -85,13 +85,13 @@
/**
* Rigourous Test :-)
- *
+ *
* @throws Exception
*/
public void testComponent() throws Exception {
HtmlPage renderedView = renderView();
assertNotNull(renderedView);
- // System.out.println(renderedView.getWebResponse().getContentAsString());
+ System.out.println(renderedView.asXml());
HtmlAnchor htmlLink = (HtmlAnchor) renderedView
.getHtmlElementById(command.getClientId(facesContext));
@@ -113,8 +113,7 @@
assertTrue(str.contains("rich-spacer"));
str = htmlSpacer.getSrcAttribute();
- assertEquals("/testContext/a4j.res/org/richfaces/renderkit/html/images/spacer.gif",
- str);
+ assertTrue(str.contains("images/spacer.gif"));
System.out.println(renderedView.getWebResponse().getContentAsString());
@@ -122,13 +121,13 @@
* List lastParameters = this.webConnection.getLastParameters(); for
* (Iterator iterator = lastParameters.iterator(); iterator.hasNext();) {
* KeyValuePair keyValue = (KeyValuePair) iterator.next();
- *
+ *
* externalContext.addRequestParameterMap((String) keyValue.getKey(),
* (String) keyValue.getValue()); }
-
+
// System.out.println(this.webConnection.getLastParameters());
-
+
UIViewRoot root = facesContext.getViewRoot();
root.processDecodes(facesContext);
root.processValidators(facesContext);
Show replies by date