Package org.jbpm.formbuilder.shared.menu

Examples of org.jbpm.formbuilder.shared.menu.MenuService.listOptions()


        subMenu.add(option2_2);
        option2.setHtml("eee");
        option2.setSubMenu(subMenu);
        retval.add(option1);
        retval.add(option2);
        EasyMock.expect(menuService.listOptions()).andReturn(retval).once();
        restService.setMenuService(menuService);
       
        EasyMock.replay(menuService);
        Response resp = restService.listMenuOptions();
        EasyMock.verify(menuService);
View Full Code Here


    //test response to a MenuServiceException on RESTMenuService.listMenuOptions()
    public void testListMenuOptionsServiceProblem() throws Exception {
        RESTMenuService restService = new RESTMenuService();
        MenuService menuService = EasyMock.createMock(MenuService.class);
        MenuServiceException exception = new MenuServiceException("Something going wrong");
        EasyMock.expect(menuService.listOptions()).andThrow(exception).once();
        restService.setMenuService(menuService);
       
        EasyMock.replay(menuService);
        Response resp = restService.listMenuOptions();
        EasyMock.verify(menuService);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.