]> source.dussan.org Git - vaadin-framework.git/blob
3a2150b700a5393c92aaefe1d1404217cb46723b
[vaadin-framework.git] /
1 package com.vaadin.tests.server.component.abstractcomponentcontainer;
2
3 import com.vaadin.tests.server.component.AbstractListenerMethodsTestBase;
4 import com.vaadin.ui.HasComponents.ComponentAttachEvent;
5 import com.vaadin.ui.HasComponents.ComponentAttachListener;
6 import com.vaadin.ui.HasComponents.ComponentDetachEvent;
7 import com.vaadin.ui.HasComponents.ComponentDetachListener;
8 import com.vaadin.ui.HorizontalLayout;
9 import com.vaadin.ui.VerticalLayout;
10
11 public class AbstractComponentContainerListenersTest extends
12         AbstractListenerMethodsTestBase {
13     public void testComponentDetachListenerAddGetRemove() throws Exception {
14         testListenerAddGetRemove(HorizontalLayout.class,
15                 ComponentDetachEvent.class, ComponentDetachListener.class);
16     }
17
18     public void testComponentAttachListenerAddGetRemove() throws Exception {
19         testListenerAddGetRemove(VerticalLayout.class,
20                 ComponentAttachEvent.class, ComponentAttachListener.class);
21     }
22 }