Search in sources :

Example 6 with VaadinRequest

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) {
        }
    };
}
Also used : InfoWindow(org.opennms.features.topology.api.support.InfoWindow) Window(com.vaadin.ui.Window) VaadinRequest(com.vaadin.server.VaadinRequest) URL(java.net.URL) Before(org.junit.Before)

Example 7 with VaadinRequest

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);
}
Also used : Window(com.vaadin.ui.Window) VaadinRequest(com.vaadin.server.VaadinRequest) Before(org.junit.Before)

Aggregations

VaadinRequest (com.vaadin.server.VaadinRequest)7 Before (org.junit.Before)6 Window (com.vaadin.ui.Window)5 UI (com.vaadin.ui.UI)3 URL (java.net.URL)3 VerticalLayout (com.vaadin.ui.VerticalLayout)2 Refresher (com.github.wolfie.refresher.Refresher)1 Strings (com.google.common.base.Strings)1 Lists (com.google.common.collect.Lists)1 PreserveOnRefresh (com.vaadin.annotations.PreserveOnRefresh)1 StyleSheet (com.vaadin.annotations.StyleSheet)1 Theme (com.vaadin.annotations.Theme)1 Title (com.vaadin.annotations.Title)1 Property (com.vaadin.data.Property)1 DefaultErrorHandler (com.vaadin.server.DefaultErrorHandler)1 UriFragmentChangedEvent (com.vaadin.server.Page.UriFragmentChangedEvent)1 UriFragmentChangedListener (com.vaadin.server.Page.UriFragmentChangedListener)1 RequestHandler (com.vaadin.server.RequestHandler)1 SessionDestroyListener (com.vaadin.server.SessionDestroyListener)1 VaadinResponse (com.vaadin.server.VaadinResponse)1