Update tests with new api
authorIván Perdomo <ivan.perdomo@openbravo.com>
Mon, 03 Jan 2011 17:31:17 +0100
changeset 9519 5a13b6e510bc
parent 9518 24178c87080a
child 9520 ec5346cbfeb8
Update tests with new api
modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/MenuTemplateTest.java
modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/MenuTest.java
--- a/modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/MenuTemplateTest.java	Mon Jan 03 17:30:44 2011 +0100
+++ b/modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/MenuTemplateTest.java	Mon Jan 03 17:31:17 2011 +0100
@@ -38,7 +38,7 @@
 
   @Test
   public void testApplication() throws Exception {
-    setBigBazaarAdminContext();
+    setTestAdminContext();
     final String javascript = appMenuComponent.generate();
     System.err.println(javascript);
 
--- a/modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/MenuTest.java	Mon Jan 03 17:30:44 2011 +0100
+++ b/modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/MenuTest.java	Mon Jan 03 17:31:17 2011 +0100
@@ -53,7 +53,7 @@
    */
   @Test
   public void testOpenbravoAdminMenu() throws Exception {
-    setBigBazaarAdminContext();
+    setTestAdminContext();
     final MenuManager.MenuOption rootMenuOption = menuManager.getMenu();
     dumpMenuOption(rootMenuOption, 0);
     assertFalse(menuManager.getSelectableMenuOptions().isEmpty());