Examples of XMLObjectReader


Examples of org.projectforge.xml.stream.XmlObjectReader

      + "</menu-entry>\n");

  @Test
  public void testTranslations()
  {
    final XmlObjectReader reader = new XmlObjectReader();
    reader.initialize(MenuEntryConfig.class);
    final MenuEntryConfig root = (MenuEntryConfig) reader.read(xml);
    MenuEntryConfig menu0 = root.getChildren().get(0);
    assertFalse(menu0.isVisible());
    assertEquals(MenuItemDefId.IMAGE_CROPPER.getId(), menu0.getMenuItemId());
    MenuEntryConfig menu1 = root.getChildren().get(1);
    assertTrue(menu1.isVisible());
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.