@Test public void testListItemsOK() throws Exception { FSMenuService service = new FSMenuService(); Map<String, List<MenuItemDescription>> items = service.listMenuItems(); assertNotNull("items shouldn't be null", items); assertFalse("items shouldn't be empty", items.isEmpty()); for (String key : items.keySet()) { assertNotNull("items of key " + key + " shouldn't be null", items.get(key)); assertFalse("items of key " + key + " shouldn't be empty", items.get(key).isEmpty()); } } @Test
@Test public void testListItemsOK() throws Exception { FSMenuService service = new FSMenuService(); Map<String, List<MenuItemDescription>> items = service.listMenuItems(); assertNotNull("items shouldn't be null", items); assertFalse("items shouldn't be empty", items.isEmpty()); for (String key : items.keySet()) { assertNotNull("items of key " + key + " shouldn't be null", items.get(key)); assertFalse("items of key " + key + " shouldn't be empty", items.get(key).isEmpty()); } } @Test
@Test public void testListOptionsOK() throws Exception { FSMenuService service = new FSMenuService(); List<MenuOptionDescription> options = service.listOptions(); assertNotNull("options shouldn't be null", options); assertFalse("options shouldn't be empty", options.isEmpty()); } @Test
@Test public void testGetFormBuilderProperties() throws Exception { FSMenuService service = new FSMenuService(); Map<String, String> props = service.getFormBuilderProperties(); assertNotNull("props shouldn't be null", props); assertFalse("props shouldn't be empty", props.isEmpty()); }
@Test public void testListOptionsOK() throws Exception { FSMenuService service = new FSMenuService(); List<MenuOptionDescription> options = service.listOptions(); assertNotNull("options shouldn't be null", options); assertFalse("options shouldn't be empty", options.isEmpty()); } @Test
@Test public void testGetFormBuilderProperties() throws Exception { FSMenuService service = new FSMenuService(); Map<String, String> props = service.getFormBuilderProperties(); assertNotNull("props shouldn't be null", props); assertFalse("props shouldn't be empty", props.isEmpty()); }
@Test public void testListValidationsOK() throws Exception { FSMenuService service = new FSMenuService(); List<ValidationDescription> validations = service.listValidations(); assertNotNull("validations shouldn't be null", validations); assertFalse("validations should'nt be empty", validations.isEmpty()); for (ValidationDescription desc : validations) { assertNotNull("validations shouldn't contain null elements", desc); assertNotNull("validation className shouldn't be null", desc.getClassName()); assertFalse("validation className shouldn't be empty", "".equals(desc.getClassName())); } }
@Test public void testListValidationsOK() throws Exception { FSMenuService service = new FSMenuService(); List<ValidationDescription> validations = service.listValidations(); assertNotNull("validations shouldn't be null", validations); assertFalse("validations should'nt be empty", validations.isEmpty()); for (ValidationDescription desc : validations) { assertNotNull("validations shouldn't contain null elements", desc); assertNotNull("validation className shouldn't be null", desc.getClassName()); assertFalse("validation className shouldn't be empty", "".equals(desc.getClassName())); } }