blob: 54085ec9c9bcb7bbaf7d37882072708a72f5d87e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
package org.eclipse.jst.j2ee.common.test;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.eclipse.jst.j2ee.common.CommonFactory;
import org.eclipse.jst.j2ee.common.Listener;
public class ListenerTest extends TestCase {
private Listener getInstance() {
return CommonFactory.eINSTANCE.createListener();
}
/* public void test_getListenerClass() {
Listener objListener = getInstance();
JavaClass retValue = null;
retValue = objListener.getListenerClass();
}
public void test_setListenerClass() {
Listener objListener = getInstance();
JavaClass newListenerClass = null;
objListener.setListenerClass(newListenerClass);
}*/
public void test_getListenerClassName() {
Listener objListener = getInstance();
String listenerClassName = "org.eclipse.jst.j2ee.common.Listener1" ;
objListener.setListenerClassName(listenerClassName);
String retValue = "";
retValue = objListener.getListenerClassName();
assertEquals(listenerClassName, retValue);
}
public void test_setListenerClassName() {
Listener objListener = getInstance();
String listenerClassName = "org.eclipse.jst.j2ee.common.Listener1";
objListener.setListenerClassName(listenerClassName);
String retValue = "";
retValue = objListener.getListenerClassName();
assertEquals(listenerClassName, retValue);
}
/**
* @return
*/
public static Test suite() {
return new TestSuite(ListenerTest.class);
}
}
|