/tests/src/test/java/org/sigmah/endtoend/fixture/DevModeContainer.java

http://sigma-h.googlecode.com/ · Java · 22 lines · 12 code · 3 blank · 7 comment · 0 complexity · a2ba20f97182dd8d4f603e3e5d50e9b6 MD5 · raw file

  1. /*
  2. * All Sigmah code is released under the GNU General Public License v3
  3. * See COPYRIGHT.txt and LICENSE.txt.
  4. */
  5. package org.sigmah.endtoend.fixture;
  6. /**
  7. * Models the GWT Development Mode container.
  8. */
  9. public class DevModeContainer extends AbstractContainer {
  10. @Override
  11. public String getUrl(String page) {
  12. StringBuilder url = new StringBuilder();
  13. url.append("http://localhost:9090");
  14. url.append(page);
  15. url.append(page.contains("?") ? "&" : "?");
  16. url.append("gwt.codesvr=localhost:9997");
  17. return url.toString();
  18. }
  19. }