aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java/com/vaadin/tests/components/customlayout/CustomLayoutWithoutTemplate.java
blob: 3811d41c9ca10bfa2e3c744c86202d0667379719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.vaadin.tests.components.customlayout;

import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.Label;

public class CustomLayoutWithoutTemplate extends AbstractReindeerTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        CustomLayout cl = new CustomLayout("missing-layout-file.html");
        cl.addComponent(new Label("This Label should be visible."), "foo");
        cl.addComponent(new Button("And this Button too."), "bar");

        addComponent(cl);
    }

    @Override
    protected String getTestDescription() {
        return "Verify that CustomLayout renders child components even if the template is missing.";
    }

    @Override
    protected Integer getTicketNumber() {
        return 8696;
    }
}