Package com.google.gdt.eclipse.designer.util

Examples of com.google.gdt.eclipse.designer.util.ModuleDescription


  /**
   * @return the {@link IResourcesProvider} for standard test module.
   */
  private static IResourcesProvider getTestModuleResourceProvider() throws Exception {
    IFile moduleFile = getFileSrc("test/Module.gwt.xml");
    ModuleDescription moduleDescription = Utils.getExactModule(moduleFile);
    return new DefaultResourcesProvider(moduleDescription);
  }
View Full Code Here


  ////////////////////////////////////////////////////////////////////////////
  /**
   * Test for using default {@link ModuleVisitor} implementation. No any action expected.
   */
  public void test_defaultFlow() throws Exception {
    ModuleDescription moduleDescription = getModuleDescription();
    ModuleVisitor.accept(moduleDescription, new ModuleVisitor() {
    });
  }
View Full Code Here

  /**
   * Test that we visit all required modules, source and public folders.
   */
  public void test_normalFlow() throws Exception {
    ModuleDescription moduleDescription = getModuleDescription();
    final StringBuilder buffer = new StringBuilder();
    ModuleVisitor.accept(moduleDescription, new ModuleVisitor() {
      @Override
      public boolean visitModule(ModuleElement module) {
        String moduleName = module.getName();
View Full Code Here

    assertThat(output).contains("|project module public|");
    assertThat(output).contains("|std Core module public|");
  }

  public void test_dontEnterModule() throws Exception {
    ModuleDescription moduleDescription = getModuleDescription();
    ModuleVisitor.accept(moduleDescription, new ModuleVisitor() {
      @Override
      public boolean visitModule(ModuleElement module) {
        if ("test.Module".equals(module.getName())) {
          return false;
View Full Code Here

        getSourceDQ(
            "<!-- filler filler filler filler filler -->",
            "<module>",
            "  <inherits name='no.such.Module'/>",
            "</module>"));
    ModuleDescription moduleDescription = getModuleDescription();
    waitForAutoBuild();
    // try to visit, exception expected
    try {
      ModuleVisitor.accept(moduleDescription, new ModuleVisitor() {
        @Override
View Full Code Here

            "<!-- filler filler filler filler filler -->",
            "<!-- filler filler filler filler filler -->",
            "<module>",
            "  <inherits/>",
            "</module>"));
    ModuleDescription moduleDescription = getModuleDescription();
    waitForAutoBuild();
    // try to visit, exception expected
    try {
      ModuleVisitor.accept(moduleDescription, new ModuleVisitor() {
      });
View Full Code Here

      IFile moduleFile_inOutput = m_testProject.getProject().getFile("bin/test/Module.gwt.xml");
      assertTrue(moduleFile_inOutput.exists());
      moduleFile_inOutput.delete(true, null);
    }
    // try to visit, no exceptions
    ModuleDescription moduleDescription = getModuleDescription();
    ModuleVisitor.accept(moduleDescription, new ModuleVisitor() {
    });
  }
View Full Code Here

  // Test
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_0() throws Exception {
    try {
      ModuleDescription moduleDescription = getTestModuleDescription();
      new ConfigureGwtExtOperation(moduleDescription).run(null);
      waitForAutoBuild();
      // gwtext.jar should be added
      assertTrue(ProjectUtils.hasType(
          m_testProject.getJavaProject(),
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  @DisposeProjectAfter
  public void test_0() throws Exception {
    IFile moduleFile = getTestModuleFile();
    ModuleDescription moduleDescription = getTestModuleDescription();
    new ConfigureSmartGwtOperation(moduleDescription, SmartGwtTests.LOCATION).run(null);
    waitForAutoBuild();
    // smartgwt.jar and smartgwt-skins.jar files should be added
    assertTrue(ProjectUtils.hasType(
        m_testProject.getJavaProject(),
View Full Code Here

  private void configureForSmartGWT_inTests(IFile moduleFile) throws Exception {
    m_testProject.addExternalJar(SmartGwtTests.LOCATION + "/smartgwt.jar");
    m_testProject.addExternalJar(SmartGwtTests.LOCATION + "/smartgwt-skins.jar");
    {
      ModuleDescription moduleDescription = getTestModuleDescription();
      new ConfigureSmartGwtOperation(moduleDescription, SmartGwtTests.LOCATION).run(null);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.util.ModuleDescription

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.