3 public class DescriptorTest
implements Runnable
{
4 public static void main(String
[] args
) {
5 new DescriptorTest().run();
9 public String
[] getTest();
10 public void setTest(String
[] test
);
11 public String
getTest(int i
);
12 public void setTest(int i
, String name
);
17 new PropertyDescriptor("class",java
.lang
.Object
.class);
18 System
.out
.println("PASSED: Property Object.class");
19 } catch(IntrospectionException e
) {
20 System
.out
.println("FAILED: Property Object.class");
25 new IndexedPropertyDescriptor("test",TestClass
.class);
26 System
.out
.println("PASSED: Indexed Property Component.location");
27 } catch(IntrospectionException e
) {
28 System
.out
.println("FAILED: Indexed Property Component.location");
33 new EventSetDescriptor(java
.awt
.Button
.class,"action",java
.awt
.event
.ActionListener
.class,"actionPerformed");
34 System
.out
.println("PASSED: Event Set Button.action");
35 } catch(IntrospectionException e
) {
36 System
.out
.println("FAILED: Event Set Button.action");
41 new MethodDescriptor(java
.awt
.Component
.class.getMethod("getLocation",new Class
[0]));
42 System
.out
.println("PASSED: Method Component.getLocation");
43 } catch(NoSuchMethodException e
) {
44 System
.out
.println("FAILED: No such method: Component.getLocation()");