[richfaces-svn-commits] JBoss Rich Faces SVN: r641 - trunk/richfaces/menu-components/src/test/java/org/richfaces/component.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu May 3 16:55:13 EDT 2007


Author: SergeySmirnov
Date: 2007-05-03 16:55:13 -0400 (Thu, 03 May 2007)
New Revision: 641

Modified:
   trunk/richfaces/menu-components/src/test/java/org/richfaces/component/MenuItemComponentTest.java
Log:
corrections for method name (submitMode instead of mode)

Modified: trunk/richfaces/menu-components/src/test/java/org/richfaces/component/MenuItemComponentTest.java
===================================================================
--- trunk/richfaces/menu-components/src/test/java/org/richfaces/component/MenuItemComponentTest.java	2007-05-03 16:23:49 UTC (rev 640)
+++ trunk/richfaces/menu-components/src/test/java/org/richfaces/component/MenuItemComponentTest.java	2007-05-03 20:55:13 UTC (rev 641)
@@ -102,7 +102,7 @@
      * MenuItem rendering test.
      */
     public void testMenuItemRender() throws Exception {
-        menuItem.setMode(MenuComponent.MODE_NONE);
+        menuItem.setSubmitMode(MenuComponent.MODE_NONE);
         HtmlPage page = renderView();
         assertNotNull(page);
         // System.out.println(page.asXml());
@@ -191,7 +191,7 @@
     public void testEnabledMenuItemServerMode() throws Exception {
         assertEquals(false, menuItem.isDisabled());
         menuItem.getAttributes().put("iconClass", "iconClass");
-        menuItem.setMode(MenuComponent.MODE_SERVER);
+        menuItem.setSubmitMode(MenuComponent.MODE_SERVER);
         menuItem.getAttributes().put("target", "target");
         menuItem.getAttributes().put("selectStyle", "menuItemSelectStyle");
         HtmlPage page = renderView();
@@ -233,7 +233,7 @@
      * Test for enabled MenuItem component in "ajax" mode.
      */
     public void testEnabledMenuItemAJAXMode() throws Exception {
-        menuItem.setMode(MenuComponent.MODE_AJAX);
+        menuItem.setSubmitMode(MenuComponent.MODE_AJAX);
         menuItem.getAttributes().put("style", "menuItemStyle");
         HtmlPage page = renderView();
         assertNotNull(page);
@@ -251,7 +251,7 @@
      * Test for enabled MenuItem component in "none" mode.
      */
     public void testEnabledMenuItemNoneMode() throws Exception {
-        menuItem.setMode(MenuComponent.MODE_NONE);
+        menuItem.setSubmitMode(MenuComponent.MODE_NONE);
         HtmlPage page = renderView();
         assertNotNull(page);
         // System.out.println(page.asXml());
@@ -312,7 +312,7 @@
     public void testMenuItemDoDecodeAJAXMode() throws Exception {
 
         menuItem.setImmediate(true);
-        menuItem.setMode(MenuComponent.MODE_AJAX);
+        menuItem.setSubmitMode(MenuComponent.MODE_AJAX);
 
         externalContext.getRequestParameterMap().put(
                 menuItem.getClientId(facesContext), "Action");
@@ -331,7 +331,7 @@
     public void testMenuItemDoDecodeServerMode() throws Exception {
 
         menuItem.setImmediate(false);
-        menuItem.setMode(MenuComponent.MODE_SERVER);
+        menuItem.setSubmitMode(MenuComponent.MODE_SERVER);
 
         externalContext.getRequestParameterMap().put(
                 menuItem.getClientId(facesContext) + ":hidden", "Action");




More information about the richfaces-svn-commits mailing list