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

Examples of com.google.gdt.eclipse.designer.model.web.WelcomeFileElement


      List<WelcomeFileListElement> welcomeListElements = m_webElement.getWelcomeFileListElements();
      assertThat(welcomeListElements).hasSize(1);
      welcomeFileListElement = welcomeListElements.get(0);
    }
    // prepare WelcomeFileElement
    WelcomeFileElement welcomeFile;
    {
      List<WelcomeFileElement> welcomeFiles = welcomeFileListElement.getWelcomeFiles();
      assertThat(welcomeFiles).hasSize(1);
      welcomeFile = welcomeFiles.get(0);
    }
    // initial state
    assertEquals("MyFile.html", welcomeFile.getName());
    // set new "name" value
    {
      welcomeFile.setName("newName.html");
      assertEquals("newName.html", welcomeFile.getName());
      m_webContent = StringUtils.replace(m_webContent, "MyFile", "newName");
      assertUpdatedModuleFile(m_webContent);
    }
    // toString()
    assertEquals(
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.web.WelcomeFileElement

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.