use of com.vaadin.flow.component.ComponentTest.TestComponent in project flow by vaadin.
the class ComponentEventBusTest method multipleEventDataConstructors_addListener.
@Test(expected = IllegalArgumentException.class)
public void multipleEventDataConstructors_addListener() {
TestComponent c = new TestComponent();
c.addListener(MappedToDomEventMultipleConstructors.class, e -> {
});
}
use of com.vaadin.flow.component.ComponentTest.TestComponent in project flow by vaadin.
the class CompositeNestedTest method setup.
@Before
public void setup() {
layout = new TestLayout();
componentInComposite = new TestComponent(ElementFactory.createDiv("Inside composite"));
compositeInner = new TestComposite(componentInComposite) {
@Override
public String toString() {
return "compositeInner";
}
};
compositeOuter = new TestComposite(compositeInner) {
@Override
public String toString() {
return "compositeOuter";
}
};
layout.addComponent(compositeOuter);
}
Aggregations