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

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


        "<module>",
        "  <source path='some.path'/>",
        "</module>"});
    assertThat(m_module.getChildren()).hasSize(1);
    // prepare single "<source>" element
    SourceElement sourceElement;
    {
      List<SourceElement> sourceElements = m_module.getSourceElements();
      assertThat(sourceElements).hasSize(1);
      sourceElement = sourceElements.get(0);
    }
    // current "path" value
    assertEquals("some.path", sourceElement.getPath());
    // set new "path" value
    {
      sourceElement.setPath("new.path");
      assertUpdatedModuleFile(StringUtils.replace(m_moduleContent, "some.path", "new.path"));
    }
  }
View Full Code Here


        "    <exclude name='some.name'/>",
        "  </source>",
        "</module>"});
    assertThat(m_module.getChildren()).hasSize(1);
    // prepare single "<source>" element
    SourceElement sourceElement;
    {
      List<SourceElement> sourceElements = m_module.getSourceElements();
      assertThat(sourceElements).hasSize(1);
      sourceElement = sourceElements.get(0);
    }
    // current "path" value
    assertEquals("some.path", sourceElement.getPath());
    // ExcludeElement
    {
      List<ExcludeElement> excludeElements = sourceElement.getExcludeElements();
      assertThat(excludeElements).hasSize(1);
      ExcludeElement excludeElement = excludeElements.get(0);
      assertEquals("some.name", excludeElement.getName());
    }
  }
View Full Code Here

TOP

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

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.