Author: abelevich
Date: 2008-03-03 10:38:54 -0500 (Mon, 03 Mar 2008)
New Revision: 6496
Modified:
trunk/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java
trunk/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java
Log:
fix junits
Modified:
trunk/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java
===================================================================
---
trunk/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java 2008-03-03
15:38:34 UTC (rev 6495)
+++
trunk/ui/inplaceSelect/src/test/java/org/richfaces/component/InplaceSelectComponentTest.java 2008-03-03
15:38:54 UTC (rev 6496)
@@ -30,13 +30,13 @@
static {
- javaScripts.add("a4j_3_2_0-SNAPSHOTorg.ajax4jsf.javascript.PrototypeScript");
- javaScripts.add("a4j_3_2_0-SNAPSHOTscripts/comboboxUtils.js");
- javaScripts.add("a4j_3_2_0-SNAPSHOTscripts/combolist.js");
- javaScripts.add("a4j_3_2_0-SNAPSHOTscripts/inplaceinput.js");
- javaScripts.add("a4j_3_2_0-SNAPSHOTscripts/inplaceselectlist.js");
- javaScripts.add("a4j_3_2_0-SNAPSHOTscripts/inplaceselect.js");
- javaScripts.add("a4j_3_2_0-SNAPSHOTorg/richfaces/renderkit/html/scripts/utils.js");
+ javaScripts.add("org.ajax4jsf.javascript.PrototypeScript");
+ javaScripts.add("scripts/comboboxUtils.js");
+ javaScripts.add("scripts/combolist.js");
+ javaScripts.add("scripts/inplaceinput.js");
+ javaScripts.add("scripts/inplaceselectlist.js");
+ javaScripts.add("scripts/inplaceselect.js");
+ javaScripts.add("org/richfaces/renderkit/html/scripts/utils.js");
}
Modified:
trunk/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java
===================================================================
---
trunk/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java 2008-03-03
15:38:34 UTC (rev 6495)
+++
trunk/ui/inplaceSelect/src/test/java/org/richfaces/renderkit/InplaceSelectRenderTest.java 2008-03-03
15:38:54 UTC (rev 6496)
@@ -3,7 +3,6 @@
import java.util.ArrayList;
import java.util.List;
-import javax.faces.component.UIForm;
import javax.faces.component.UISelectItem;
import javax.faces.component.UISelectItems;
import javax.faces.model.SelectItem;
@@ -61,22 +60,12 @@
facesContext.getViewRoot().getChildren().add(iselect);
}
- public void testRender(){
+ public void testRender() throws Exception{
- try {
- HtmlPage page = renderView();
- assertNotNull(page);
- HtmlElement elem = page.getHtmlElementById(iselect.getClientId(facesContext));
- assertNotNull(elem);
- assertEquals(elem.getTagName(), "span");
- renderer.doEncodeEnd(writer, facesContext, iselect);
-
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- fail();
- }
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ HtmlElement elem = page.getHtmlElementById(iselect.getClientId(facesContext));
+ assertNotNull(elem);
+ assertEquals(elem.getTagName(), "span");
}
-
-
}
Show replies by date