]> source.dussan.org Git - vaadin-framework.git/blob
0896b5d649f56f101c291f1717adca4208587b91
[vaadin-framework.git] /
1 package com.vaadin.tests.server.component.abstracttextfield;
2
3 import com.vaadin.event.FieldEvents.BlurEvent;
4 import com.vaadin.event.FieldEvents.BlurListener;
5 import com.vaadin.event.FieldEvents.FocusEvent;
6 import com.vaadin.event.FieldEvents.FocusListener;
7 import com.vaadin.event.FieldEvents.TextChangeEvent;
8 import com.vaadin.event.FieldEvents.TextChangeListener;
9 import com.vaadin.tests.server.component.AbstractListenerMethodsTestBase;
10 import com.vaadin.ui.TextField;
11
12 public class AbstractTextFieldListenersTest extends
13         AbstractListenerMethodsTestBase {
14     public void testTextChangeListenerAddGetRemove() throws Exception {
15         testListenerAddGetRemove(TextField.class, TextChangeEvent.class,
16                 TextChangeListener.class);
17     }
18
19     public void testFocusListenerAddGetRemove() throws Exception {
20         testListenerAddGetRemove(TextField.class, FocusEvent.class,
21                 FocusListener.class);
22     }
23
24     public void testBlurListenerAddGetRemove() throws Exception {
25         testListenerAddGetRemove(TextField.class, BlurEvent.class,
26                 BlurListener.class);
27     }
28 }