Package com.google.gdt.eclipse.designer.model.module

Examples of com.google.gdt.eclipse.designer.model.module.SetPropertyFallbackElement


        "<module>",
        "  <set-property-fallback name='some.name' value='some.value'/>",
        "</module>"});
    assertThat(m_module.getChildren()).hasSize(1);
    // prepare single "<set-property-fallback>" element
    SetPropertyFallbackElement element;
    {
      List<SetPropertyFallbackElement> elements = m_module.getSetPropertyFallbackElements();
      assertThat(elements).hasSize(1);
      element = elements.get(0);
    }
    // current attribute values
    assertEquals("some.name", element.getName());
    assertEquals("some.value", element.getValue());
    // set new attribute value
    {
      element.setName("new.name");
      element.setValue("new.value");
      {
        String newContent = m_moduleContent;
        newContent = StringUtils.replace(newContent, "some.name", "new.name");
        newContent = StringUtils.replace(newContent, "some.value", "new.value");
        assertUpdatedModuleFile(newContent);
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.module.SetPropertyFallbackElement

Copyright © 2018 www.massapicom. 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.