01: package abbot.editor;
02:
03: import java.awt.Component;
04: import java.lang.reflect.Method;
05: import java.util.*;
06:
07: import junit.extensions.abbot.*;
08:
09: public class ComponentPropertyModelTest extends ComponentTestFixture {
10:
11: public void testFilterTesterMethods() {
12: ComponentPropertyModel model = new ComponentPropertyModel();
13: Method[] methods = model.getPropertyMethods(Component.class,
14: false);
15: List list = Arrays.asList(methods);
16: String[] filtered = { "getTag", "getTester" };
17: for (int i = 0; i < filtered.length; i++) {
18: assertTrue(filtered[i] + " not filtered", !list
19: .contains(filtered[i]));
20: }
21: }
22:
23: /** Run the default test suite. */
24: public static void main(String[] args) {
25: TestHelper.runTests(args, ComponentPropertyModelTest.class);
26: }
27: }
|