]> source.dussan.org Git - vaadin-framework.git/blob
6a8267f296aabb8154552fb43f3bb953fea557e5
[vaadin-framework.git] /
1 package com.vaadin.tests.server.component.abstractcomponentcontainer;
2
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;
10
11 public class TestAbstractComponentContainerListeners extends AbstractListenerMethodsTest {
12     public void testComponentDetachListenerAddGetRemove() throws Exception {
13         testListenerAddGetRemove(HorizontalLayout.class,
14                 ComponentDetachEvent.class, ComponentDetachListener.class);
15     }
16
17     public void testComponentAttachListenerAddGetRemove() throws Exception {
18         testListenerAddGetRemove(VerticalLayout.class,
19                 ComponentAttachEvent.class, ComponentAttachListener.class);
20     }
21 }