use of com.vaadin.server.VaadinRequest in project opennms by OpenNMS.
the class NodeInfoWindowTest method setUp.
@Before
public void setUp() throws Exception {
Node testNode1 = new Node(9, "192.0.2.10", "Cartman");
final URL url = new URL("http://localhost:8080/");
window = new NodeInfoWindow(null, url);
window2 = new NodeInfoWindow(testNode1, url);
mainWindow = new Window();
app = new //Empty Application
UI() {
private static final long serialVersionUID = -6798973775063082899L;
@Override
public void init(VaadinRequest request) {
}
};
}
use of com.vaadin.server.VaadinRequest in project opennms by OpenNMS.
the class AuthWindowTest method setup.
@SuppressWarnings("serial")
@Before
public void setup() {
normalWindow = new AuthWindow(testHost, testPort);
noPortWindow = new AuthWindow(testHost, emptyPort);
noHostWindow = new AuthWindow(emptyHost, testPort);
emptyWindow = new AuthWindow(emptyHost, emptyPort);
invalidHostWindow = new AuthWindow(invalidHost, testPort);
mainWindow = new Window();
app = new //Empty Application
UI() {
@Override
public void init(VaadinRequest request) {
}
};
app.addWindow(normalWindow);
app.addWindow(noHostWindow);
app.addWindow(noPortWindow);
app.addWindow(emptyWindow);
app.addWindow(invalidHostWindow);
UI.setCurrent(app);
}
Aggregations