PageRenderTime 25ms CodeModel.GetById 20ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 6package org.sigmah.endtoend.fixture;
 7
 8/**
 9 * Models the GWT Development Mode container.
10 */
11public class DevModeContainer extends AbstractContainer {
12
13    @Override
14    public String getUrl(String page) {
15        StringBuilder url = new StringBuilder();
16        url.append("http://localhost:9090");
17        url.append(page);
18        url.append(page.contains("?") ? "&" : "?");
19        url.append("gwt.codesvr=localhost:9997");
20        return url.toString();
21    }
22}