KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > javax > management > compliance > JMXComplianceTestCase


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package test.javax.management.compliance;
10
11 import java.io.File JavaDoc;
12 import java.io.IOException JavaDoc;
13 import java.net.MalformedURLException JavaDoc;
14 import java.util.jar.JarFile JavaDoc;
15
16 /**
17  * @version $Revision: 1.4 $
18  */

19 public abstract class JMXComplianceTestCase extends ComplianceTestCase
20 {
21    public JMXComplianceTestCase(String JavaDoc s)
22    {
23       super(s);
24    }
25
26    protected ClassLoader JavaDoc createClassLoader() throws MalformedURLException JavaDoc
27    {
28       return createJMXRIWithTestsClassLoader();
29    }
30
31    protected JarFile JavaDoc loadJar() throws IOException JavaDoc
32    {
33       File JavaDoc jmxri = new File JavaDoc("dist/test/jmxri.jar");
34       if (!jmxri.exists()) fail("JMXRI jar is not available");
35       JarFile JavaDoc jmxriJar = new JarFile JavaDoc(jmxri);
36       return jmxriJar;
37    }
38
39    public void test_AndQueryExp() throws Exception JavaDoc
40    {
41       check("AndQueryExp");
42    }
43
44    public void test_Attribute() throws Exception JavaDoc
45    {
46       check("Attribute");
47    }
48
49    public void test_AttributeChangeNotification() throws Exception JavaDoc
50    {
51       check("AttributeChangeNotification");
52    }
53
54    public void test_AttributeChangeNotificationFilter() throws Exception JavaDoc
55    {
56       check("AttributeChangeNotificationFilter");
57    }
58
59    public void test_AttributeList() throws Exception JavaDoc
60    {
61       check("AttributeList");
62    }
63
64    public void test_AttributeNotFoundException() throws Exception JavaDoc
65    {
66       check("AttributeNotFoundException");
67    }
68
69    public void test_AttributeValueExp() throws Exception JavaDoc
70    {
71       check("AttributeValueExp");
72    }
73
74    public void test_BadAttributeValueExpException() throws Exception JavaDoc
75    {
76       check("BadAttributeValueExpException");
77    }
78
79    public void test_BadBinaryOpValueExpException() throws Exception JavaDoc
80    {
81       check("BadBinaryOpValueExpException");
82    }
83
84    public void test_BadStringOperationException() throws Exception JavaDoc
85    {
86       check("BadStringOperationException");
87    }
88
89    public void test_BetweenQueryExp() throws Exception JavaDoc
90    {
91       check("BetweenQueryExp");
92    }
93
94    public void test_BinaryOpValueExp() throws Exception JavaDoc
95    {
96       check("BinaryOpValueExp");
97    }
98
99    public void test_BinaryRelQueryExp() throws Exception JavaDoc
100    {
101       check("BinaryRelQueryExp");
102    }
103
104    public void test_BooleanValueExp() throws Exception JavaDoc
105    {
106       check("BooleanValueExp");
107    }
108
109    public void test_ClassAttributeValueExp() throws Exception JavaDoc
110    {
111       check("ClassAttributeValueExp");
112    }
113
114    public void test_DefaultLoaderRepository() throws Exception JavaDoc
115    {
116       check("DefaultLoaderRepository");
117    }
118
119    public void test_Descriptor() throws Exception JavaDoc
120    {
121       check("Descriptor");
122    }
123
124    public void test_DescriptorAccess() throws Exception JavaDoc
125    {
126       check("DescriptorAccess");
127    }
128
129    public void test_DynamicMBean() throws Exception JavaDoc
130    {
131       check("DynamicMBean");
132    }
133
134    public void test_InQueryExp() throws Exception JavaDoc
135    {
136       check("InQueryExp");
137    }
138
139    public void test_InstanceAlreadyExistsException() throws Exception JavaDoc
140    {
141       check("InstanceAlreadyExistsException");
142    }
143
144    public void test_InstanceNotFoundException() throws Exception JavaDoc
145    {
146       check("InstanceNotFoundException");
147    }
148
149    public void test_IntrospectionException() throws Exception JavaDoc
150    {
151       check("IntrospectionException");
152    }
153
154    public void test_InvalidApplicationException() throws Exception JavaDoc
155    {
156       check("InvalidApplicationException");
157    }
158
159    public void test_InvalidAttributeValueException() throws Exception JavaDoc
160    {
161       check("InvalidAttributeValueException");
162    }
163
164    public void test_JMException() throws Exception JavaDoc
165    {
166       check("JMException");
167    }
168
169    public void test_JMRuntimeException() throws Exception JavaDoc
170    {
171       check("JMRuntimeException");
172    }
173
174    public void test_ListenerNotFoundException() throws Exception JavaDoc
175    {
176       check("ListenerNotFoundException");
177    }
178
179    public void test_MalformedObjectNameException() throws Exception JavaDoc
180    {
181       check("MalformedObjectNameException");
182    }
183
184    public void test_MatchQueryExp() throws Exception JavaDoc
185    {
186       check("MatchQueryExp");
187    }
188
189    public void test_MBeanAttributeInfo() throws Exception JavaDoc
190    {
191       check("MBeanAttributeInfo");
192    }
193
194    public void test_MBeanConstructorInfo() throws Exception JavaDoc
195    {
196       check("MBeanConstructorInfo");
197    }
198
199    public void test_MBeanException() throws Exception JavaDoc
200    {
201       check("MBeanException");
202    }
203
204    public void test_MBeanFeatureInfo() throws Exception JavaDoc
205    {
206       check("MBeanFeatureInfo");
207    }
208
209    public void test_MBeanInfo() throws Exception JavaDoc
210    {
211       check("MBeanInfo");
212    }
213
214    public void test_MBeanNotificationInfo() throws Exception JavaDoc
215    {
216       check("MBeanNotificationInfo");
217    }
218
219    public void test_MBeanOperationInfo() throws Exception JavaDoc
220    {
221       check("MBeanOperationInfo");
222    }
223
224    public void test_MBeanParameterInfo() throws Exception JavaDoc
225    {
226       check("MBeanParameterInfo");
227    }
228
229    public void test_MBeanPermission() throws Exception JavaDoc
230    {
231       check("MBeanPermission");
232    }
233
234    public void test_MBeanRegistration() throws Exception JavaDoc
235    {
236       check("MBeanRegistration");
237    }
238
239    public void test_MBeanRegistrationException() throws Exception JavaDoc
240    {
241       check("MBeanRegistrationException");
242    }
243
244    public void test_MBeanServer() throws Exception JavaDoc
245    {
246       check("MBeanServer");
247    }
248
249    public void test_MBeanServerBuilder() throws Exception JavaDoc
250    {
251       check("MBeanServerBuilder");
252    }
253
254    public void test_MBeanServerConnection() throws Exception JavaDoc
255    {
256       check("MBeanServerConnection");
257    }
258
259    public void test_MBeanServerDelegate() throws Exception JavaDoc
260    {
261       check("MBeanServerDelegate");
262    }
263
264    public void test_MBeanServerDelegateMBean() throws Exception JavaDoc
265    {
266       check("MBeanServerDelegateMBean");
267    }
268
269    public void test_MBeanServerFactory() throws Exception JavaDoc
270    {
271       check("MBeanServerFactory");
272    }
273
274    public void test_MBeanServerInvocationHandler() throws Exception JavaDoc
275    {
276       check("MBeanServerInvocationHandler");
277    }
278
279    public void test_MBeanServerNotification() throws Exception JavaDoc
280    {
281       check("MBeanServerNotification");
282    }
283
284    public void test_MBeanServerPermission() throws Exception JavaDoc
285    {
286       check("MBeanServerPermission");
287    }
288
289    public void test_MBeanTrustPermission() throws Exception JavaDoc
290    {
291       check("MBeanTrustPermission");
292    }
293
294    public void test_NotCompliantMBeanException() throws Exception JavaDoc
295    {
296       check("NotCompliantMBeanException");
297    }
298
299    public void test_Notification() throws Exception JavaDoc
300    {
301       check("Notification");
302    }
303
304    public void test_NotificationBroadcaster() throws Exception JavaDoc
305    {
306       check("NotificationBroadcaster");
307    }
308
309    public void test_NotificationBroadcasterSupport() throws Exception JavaDoc
310    {
311       check("NotificationBroadcasterSupport");
312    }
313
314    public void test_NotificationEmitter() throws Exception JavaDoc
315    {
316       check("NotificationEmitter");
317    }
318
319    public void test_NotificationFilter() throws Exception JavaDoc
320    {
321       check("NotificationFilter");
322    }
323
324    public void test_NotificationFilterSupport() throws Exception JavaDoc
325    {
326       check("NotificationFilterSupport");
327    }
328
329    public void test_NotificationListener() throws Exception JavaDoc
330    {
331       check("NotificationListener");
332    }
333
334    public void test_NotQueryExp() throws Exception JavaDoc
335    {
336       check("NotQueryExp");
337    }
338
339    public void test_NumericValueExp() throws Exception JavaDoc
340    {
341       check("NumericValueExp");
342    }
343
344    public void test_ObjectInstance() throws Exception JavaDoc
345    {
346       check("ObjectInstance");
347    }
348
349    public void test_ObjectName() throws Exception JavaDoc
350    {
351       check("ObjectName");
352    }
353
354    public void test_OperationsException() throws Exception JavaDoc
355    {
356       check("OperationsException");
357    }
358
359    public void test_OrQueryExp() throws Exception JavaDoc
360    {
361       check("OrQueryExp");
362    }
363
364    public void test_PersistentMBean() throws Exception JavaDoc
365    {
366       check("PersistentMBean");
367    }
368
369    public void test_QualifiedAttributeValueExp() throws Exception JavaDoc
370    {
371       check("QualifiedAttributeValueExp");
372    }
373
374    public void test_Query() throws Exception JavaDoc
375    {
376       check("Query");
377    }
378
379    public void test_QueryEval() throws Exception JavaDoc
380    {
381       check("QueryEval");
382    }
383
384    public void test_QueryExp() throws Exception JavaDoc
385    {
386       check("QueryExp");
387    }
388
389    public void test_ReflectionException() throws Exception JavaDoc
390    {
391       check("ReflectionException");
392    }
393
394    public void test_RuntimeErrorException() throws Exception JavaDoc
395    {
396       check("RuntimeErrorException");
397    }
398
399    public void test_RuntimeMBeanException() throws Exception JavaDoc
400    {
401       check("RuntimeMBeanException");
402    }
403
404    public void test_RuntimeOperationsException() throws Exception JavaDoc
405    {
406       check("RuntimeOperationsException");
407    }
408
409    public void test_ServiceNotFoundException() throws Exception JavaDoc
410    {
411       check("ServiceNotFoundException");
412    }
413
414    public void test_StandardMBean() throws Exception JavaDoc
415    {
416       check("StandardMBean");
417    }
418
419    public void test_StringValueExp() throws Exception JavaDoc
420    {
421       check("StringValueExp");
422    }
423
424    public void test_ValueExp() throws Exception JavaDoc
425    {
426       check("ValueExp");
427    }
428
429    public void test_loading_ClassLoaderRepository() throws Exception JavaDoc
430    {
431       check("loading.ClassLoaderRepository");
432    }
433
434    public void test_loading_DefaultLoaderRepository() throws Exception JavaDoc
435    {
436       check("loading.DefaultLoaderRepository");
437    }
438
439    public void test_loading_MLet() throws Exception JavaDoc
440    {
441       check("loading.MLet");
442    }
443
444    public void test_loading_MLetMBean() throws Exception JavaDoc
445    {
446       check("loading.MLetMBean");
447    }
448
449    public void test_loading_PrivateClassLoader() throws Exception JavaDoc
450    {
451       check("loading.PrivateClassLoader");
452    }
453
454    public void test_loading_PrivateMLet() throws Exception JavaDoc
455    {
456       check("loading.PrivateMLet");
457    }
458
459    public void test_modelmbean_DescriptorSupport() throws Exception JavaDoc
460    {
461       check("modelmbean.DescriptorSupport");
462    }
463
464    public void test_modelmbean_InvalidTargetObjectTypeException() throws Exception JavaDoc
465    {
466       check("modelmbean.InvalidTargetObjectTypeException");
467    }
468
469    public void test_modelmbean_ModelMBean() throws Exception JavaDoc
470    {
471       check("modelmbean.ModelMBean");
472    }
473
474    public void test_modelmbean_ModelMBeanAttributeInfo() throws Exception JavaDoc
475    {
476       check("modelmbean.ModelMBeanAttributeInfo");
477    }
478
479    public void test_modelmbean_ModelMBeanConstructorInfo() throws Exception JavaDoc
480    {
481       check("modelmbean.ModelMBeanConstructorInfo");
482    }
483
484    public void test_modelmbean_ModelMBeanInfo() throws Exception JavaDoc
485    {
486       check("modelmbean.ModelMBeanInfo");
487    }
488
489    public void test_modelmbean_ModelMBeanInfoSupport() throws Exception JavaDoc
490    {
491       check("modelmbean.ModelMBeanInfoSupport");
492    }
493
494    public void test_modelmbean_ModelMBeanNotificationBroadcaster() throws Exception JavaDoc
495    {
496       check("modelmbean.ModelMBeanNotificationBroadcaster");
497    }
498
499    public void test_modelmbean_ModelMBeanNotificationInfo() throws Exception JavaDoc
500    {
501       check("modelmbean.ModelMBeanNotificationInfo");
502    }
503
504    public void test_modelmbean_ModelMBeanOperationInfo() throws Exception JavaDoc
505    {
506       check("modelmbean.ModelMBeanOperationInfo");
507    }
508
509    public void test_modelmbean_RequiredModelMBean() throws Exception JavaDoc
510    {
511       check("modelmbean.RequiredModelMBean");
512    }
513
514    public void test_modelmbean_XMLParseException() throws Exception JavaDoc
515    {
516       check("modelmbean.XMLParseException");
517    }
518
519    public void test_monitor_CounterMonitor() throws Exception JavaDoc
520    {
521       check("monitor.CounterMonitor");
522    }
523
524    public void test_monitor_CounterMonitorMBean() throws Exception JavaDoc
525    {
526       check("monitor.CounterMonitorMBean");
527    }
528
529    public void test_monitor_GaugeMonitor() throws Exception JavaDoc
530    {
531       check("monitor.GaugeMonitor");
532    }
533
534    public void test_monitor_GaugeMonitorMBean() throws Exception JavaDoc
535    {
536       check("monitor.GaugeMonitorMBean");
537    }
538
539    public void test_monitor_Monitor() throws Exception JavaDoc
540    {
541       check("monitor.Monitor");
542    }
543
544    public void test_monitor_MonitorMBean() throws Exception JavaDoc
545    {
546       check("monitor.MonitorMBean");
547    }
548
549    public void test_monitor_StringMonitor() throws Exception JavaDoc
550    {
551       check("monitor.StringMonitor");
552    }
553
554    public void test_monitor_StringMonitorMBean() throws Exception JavaDoc
555    {
556       check("monitor.StringMonitorMBean");
557    }
558
559    public void test_monitor_MonitorNotification() throws Exception JavaDoc
560    {
561       check("monitor.MonitorNotification");
562    }
563
564    public void test_monitor_MonitorSettingException() throws Exception JavaDoc
565    {
566       check("monitor.MonitorSettingException");
567    }
568
569    public void test_openmbean_ArrayType() throws Exception JavaDoc
570    {
571       check("openmbean.ArrayType");
572    }
573
574    public void test_openmbean_CompositeData() throws Exception JavaDoc
575    {
576       check("openmbean.CompositeData");
577    }
578
579    public void test_openmbean_CompositeDataSupport() throws Exception JavaDoc
580    {
581       check("openmbean.CompositeDataSupport");
582    }
583
584    public void test_openmbean_CompositeType() throws Exception JavaDoc
585    {
586       check("openmbean.CompositeType");
587    }
588
589    public void test_openmbean_InvalidKeyException() throws Exception JavaDoc
590    {
591       check("openmbean.InvalidKeyException");
592    }
593
594    public void test_openmbean_InvalidOpenTypeException() throws Exception JavaDoc
595    {
596       check("openmbean.InvalidOpenTypeException");
597    }
598
599    public void test_openmbean_KeyAlreadyExistsException() throws Exception JavaDoc
600    {
601       check("openmbean.KeyAlreadyExistsException");
602    }
603
604    public void test_openmbean_OpenDataException() throws Exception JavaDoc
605    {
606       check("openmbean.OpenDataException");
607    }
608
609    public void test_openmbean_OpenMBeanAttributeInfo() throws Exception JavaDoc
610    {
611       check("openmbean.OpenMBeanAttributeInfo");
612    }
613
614    public void test_openmbean_OpenMBeanAttributeInfoSupport() throws Exception JavaDoc
615    {
616       check("openmbean.OpenMBeanAttributeInfoSupport");
617    }
618
619    public void test_openmbean_OpenMBeanConstructorInfo() throws Exception JavaDoc
620    {
621       check("openmbean.OpenMBeanConstructorInfo");
622    }
623
624    public void test_openmbean_OpenMBeanConstructorInfoSupport() throws Exception JavaDoc
625    {
626       check("openmbean.OpenMBeanConstructorInfoSupport");
627    }
628
629    public void test_openmbean_OpenMBeanInfo() throws Exception JavaDoc
630    {
631       check("openmbean.OpenMBeanInfo");
632    }
633
634    public void test_openmbean_OpenMBeanInfoSupport() throws Exception JavaDoc
635    {
636       check("openmbean.OpenMBeanInfoSupport");
637    }
638
639    public void test_openmbean_OpenMBeanOperationInfo() throws Exception JavaDoc
640    {
641       check("openmbean.OpenMBeanOperationInfo");
642    }
643
644    public void test_openmbean_OpenMBeanOperationInfoSupport() throws Exception JavaDoc
645    {
646       check("openmbean.OpenMBeanOperationInfoSupport");
647    }
648
649    public void test_openmbean_OpenMBeanParameterInfo() throws Exception JavaDoc
650    {
651       check("openmbean.OpenMBeanParameterInfo");
652    }
653
654    public void test_openmbean_OpenMBeanParameterInfoSupport() throws Exception JavaDoc
655    {
656       check("openmbean.OpenMBeanParameterInfoSupport");
657    }
658
659    public void test_openmbean_OpenType() throws Exception JavaDoc
660    {
661       check("openmbean.OpenType");
662    }
663
664    public void test_openmbean_SimpleType() throws Exception JavaDoc
665    {
666       check("openmbean.SimpleType");
667    }
668
669    public void test_openmbean_TabularData() throws Exception JavaDoc
670    {
671       check("openmbean.TabularData");
672    }
673
674    public void test_openmbean_TabularDataSupport() throws Exception JavaDoc
675    {
676       check("openmbean.TabularDataSupport");
677    }
678
679    public void test_openmbean_TabularType() throws Exception JavaDoc
680    {
681       check("openmbean.TabularType");
682    }
683
684    public void test_relation_InvalidRelationIdException() throws Exception JavaDoc
685    {
686       check("relation.InvalidRelationIdException");
687    }
688
689    public void test_relation_InvalidRelationServiceException() throws Exception JavaDoc
690    {
691       check("relation.InvalidRelationServiceException");
692    }
693
694    public void test_relation_InvalidRelationTypeException() throws Exception JavaDoc
695    {
696       check("relation.InvalidRelationTypeException");
697    }
698
699    public void test_relation_InvalidRoleInfoException() throws Exception JavaDoc
700    {
701       check("relation.InvalidRoleInfoException");
702    }
703
704    public void test_relation_InvalidRoleValueException() throws Exception JavaDoc
705    {
706       check("relation.InvalidRoleValueException");
707    }
708
709    public void test_relation_MBeanServerNotificationFilter() throws Exception JavaDoc
710    {
711       check("relation.MBeanServerNotificationFilter");
712    }
713
714    public void test_relation_Relation() throws Exception JavaDoc
715    {
716       check("relation.Relation");
717    }
718
719    public void test_relation_RelationException() throws Exception JavaDoc
720    {
721       check("relation.RelationException");
722    }
723
724    public void test_relation_RelationNotFoundException() throws Exception JavaDoc
725    {
726       check("relation.RelationNotFoundException");
727    }
728
729    public void test_relation_RelationNotification() throws Exception JavaDoc
730    {
731       check("relation.RelationNotification");
732    }
733
734    public void test_relation_RelationService() throws Exception JavaDoc
735    {
736       check("relation.RelationService");
737    }
738
739    public void test_relation_RelationServiceMBean() throws Exception JavaDoc
740    {
741       check("relation.RelationServiceMBean");
742    }
743
744    public void test_relation_RelationServiceNotRegisteredException() throws Exception JavaDoc
745    {
746       check("relation.RelationServiceNotRegisteredException");
747    }
748
749    public void test_relation_RelationSupport() throws Exception JavaDoc
750    {
751       check("relation.RelationSupport");
752    }
753
754    public void test_relation_RelationSupportMBean() throws Exception JavaDoc
755    {
756       check("relation.RelationSupportMBean");
757    }
758
759    public void test_relation_RelationType() throws Exception JavaDoc
760    {
761       check("relation.RelationType");
762    }
763
764    public void test_relation_RelationTypeNotFoundException() throws Exception JavaDoc
765    {
766       check("relation.RelationTypeNotFoundException");
767    }
768
769    public void test_relation_RelationTypeSupport() throws Exception JavaDoc
770    {
771       check("relation.RelationTypeSupport");
772    }
773
774    public void test_relation_Role() throws Exception JavaDoc
775    {
776       check("relation.Role");
777    }
778
779    public void test_relation_RoleInfo() throws Exception JavaDoc
780    {
781       check("relation.RoleInfo");
782    }
783
784    public void test_relation_RoleInfoNotFoundException() throws Exception JavaDoc
785    {
786       check("relation.RoleInfoNotFoundException");
787    }
788
789    public void test_relation_RoleList() throws Exception JavaDoc
790    {
791       check("relation.RoleList");
792    }
793
794    public void test_relation_RoleNotFoundException() throws Exception JavaDoc
795    {
796       check("relation.RoleNotFoundException");
797    }
798
799    public void test_relation_RoleResult() throws Exception JavaDoc
800    {
801       check("relation.RoleResult");
802    }
803
804    public void test_relation_RoleStatus() throws Exception JavaDoc
805    {
806       check("relation.RoleStatus");
807    }
808
809    public void test_relation_RoleUnresolved() throws Exception JavaDoc
810    {
811       check("relation.RoleUnresolved");
812    }
813
814    public void test_relation_RoleUnresolvedList() throws Exception JavaDoc
815    {
816       check("relation.RoleUnresolvedList");
817    }
818
819    public void test_timer_Timer() throws Exception JavaDoc
820    {
821       check("timer.Timer");
822    }
823
824    public void test_timer_TimerMBean() throws Exception JavaDoc
825    {
826       check("timer.TimerMBean");
827    }
828
829    public void test_timer_TimerAlarmClockNotification() throws Exception JavaDoc
830    {
831       check("timer.TimerAlarmClockNotification");
832    }
833
834    public void test_timer_TimerNotification() throws Exception JavaDoc
835    {
836       check("timer.TimerNotification");
837    }
838 }
839
Popular Tags