1 package com.vaadin.tests.server.component.abstractcomponentcontainer;
3 import com.vaadin.tests.server.component.AbstractListenerMethodsTest;
4 import com.vaadin.ui.ComponentContainer.ComponentAttachEvent;
5 import com.vaadin.ui.ComponentContainer.ComponentAttachListener;
6 import com.vaadin.ui.ComponentContainer.ComponentDetachEvent;
7 import com.vaadin.ui.ComponentContainer.ComponentDetachListener;
8 import com.vaadin.ui.HorizontalLayout;
9 import com.vaadin.ui.VerticalLayout;
11 public class TestAbstractComponentContainerListeners extends
12 AbstractListenerMethodsTest {
13 public void testComponentDetachListenerAddGetRemove() throws Exception {
14 testListenerAddGetRemove(HorizontalLayout.class,
15 ComponentDetachEvent.class, ComponentDetachListener.class);
18 public void testComponentAttachListenerAddGetRemove() throws Exception {
19 testListenerAddGetRemove(VerticalLayout.class,
20 ComponentAttachEvent.class, ComponentAttachListener.class);