Java Doc for MBeanServerTEST.java in  » EJB-Server-JBoss-4.2.1 » jmx » test » compliance » server » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » jmx » test.compliance.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


test.compliance.server.MBeanServerTEST

MBeanServerTEST
public class MBeanServerTEST extends TestCase (Code)
Tests the MBean server impl. through the MBeanServer interface.
author:
   Juha Lindfors.
version:
   $Revision: 57200 $



Constructor Summary
public  MBeanServerTEST(String s)
    

Method Summary
public synchronized  voidtestAddListenerMultipleHandbacks()
    
public synchronized  voidtestAddListenerToTwoBroadcasters()
    
public synchronized  voidtestAddListenerToTwoBroadcastersRemoveOne()
    
public synchronized  voidtestAddMBeanListenerMultipleHandbacks()
    
public synchronized  voidtestAddMBeanListenerToTwoBroadcasters()
    
public synchronized  voidtestAddMBeanListenerToTwoBroadcastersRemoveOne()
    
public synchronized  voidtestAddMBeanMultipleListeners()
    
public synchronized  voidtestAddMultipleListeners()
    
public synchronized  voidtestAddNotificationListenerToDelegate()
    
public  voidtestBasicUnregister()
    
public  voidtestGetAttributeWithBusinessException()
    
public  voidtestGetAttributeWithError()
    
public  voidtestGetAttributeWithNonExistingAttribute()
    
public  voidtestGetAttributeWithNonExistingMBean()
    
public  voidtestGetAttributeWithUncheckedException()
    
public  voidtestGetDomains()
    
public  voidtestInstantiateWithDefaultConstructor()
     Tests instantiate(String className).
public  voidtestInstantiateWithDefaultConstructorAndApplicationException()
     Tests instantiate(String className) with constructor that throws a checked application exception.
public  voidtestInstantiateWithDefaultConstructorAndError()
     Tests instantiate(String className) with constructor that throws an error.
public  voidtestInstantiateWithDefaultConstructorAndErrorInInit()
     Tests instatiante(String className) with constructor that fails with an error in static init block.
public  voidtestInstantiateWithDefaultConstructorAndExceptionInInit()
     Tests instantiate(String className) with constructor that fails with an unchecked exception in static init block.
public  voidtestInstantiateWithDefaultConstructorAndRuntimeException()
     Tests instantiate(String className) with constructor that throws an unchecked application exception.
public  voidtestInstantiateWithDefaultConstructorAndUnknownClass()
     Tests instantiate(String className) with unfound class.
public  voidtestInstantiateWithDefaultLoaderRepository()
     Tests instantiate(String className) classloading behaviour.
public  voidtestInstantiateWithDefaultLoaderRepository2()
     Tests instantiate(String className, ObjectName loader) classloading behaviour.
public  voidtestInstantiateWithEmptyClassName()
     Tests instantiate(String className) with empty class name string.
public  voidtestInstantiateWithEmptyClassName2()
     Tests instantiate(String className, ObjectName loader) with empty class name string.
public  voidtestInstantiateWithEmptyClassName3()
     Tests instantiate(String className, Object[] args, String[] sign) with empty class name string.
public  voidtestInstantiateWithEmptyClassName4()
     Tests instantiate(String className, ObjectName loader, Object[] args, String[] sign) with empty class name string.
public  voidtestInstantiateWithInaccessibleNoArgsConstructor()
     Tests instantiate(String className) with protected (no access) no args constructor.
public  voidtestInstantiateWithMissingDefaultConstructor()
     Tests instantiate(String className) with class that doesn't have a default constructor.
public  voidtestInstantiateWithNullClassName()
     Tests instantiate(String className) with null class name.
public  voidtestInstantiateWithNullClassName2()
     Tests instantiate(String className, ObjectName loader) with null class name.
public  voidtestInstantiateWithNullClassName3()
     Tests instantiate(String className, Object[] args, String[] sign) with null class name.
public  voidtestInstantiateWithNullClassName4()
     Tests instantiate(String className, ObjectName loader, Object[] args, String[] sign) with null class name.
public  voidtestInvokeWithBusinessException()
     Attempts to invoke a MBean operation that throws a business exception; MBeanException should be thrown.
public  voidtestInvokeWithLongArrayReturn()
     Tests invoke with Long array return type.
public  voidtestInvokeWithLongSignature()
     Tests invoke with long signature.
public  voidtestInvokeWithMixedSignature()
     Tests invoke with mixed types in signature, especially types with double byte code length and arrays.
public  voidtestInvokeWithNonExistantMBean()
     Attempts to invoke a method on an unregistered MBean; InstanceNotFoundException should occur.
public  voidtestInvokeWithPrimitiveBooleanReturn()
     Tests invoke with primitive boolean return type.
public  voidtestInvokeWithPrimitiveDoubleReturn()
     Tests invoke with primitive double return type.
public  voidtestInvokeWithPrimitiveLongArrayReturn()
     Tests invoke with primitive long array return type.
public  voidtestInvokeWithPrimitiveLongReturn()
     Tests invoke with primitive long return type.
public  voidtestIsInstanceOf()
    
public  voidtestIsInstanceOfErrors()
    
public synchronized  voidtestMBeanRedeployNotification()
    
public synchronized  voidtestMBeanRemoveBroadcaster()
    
public synchronized  voidtestMBeanRemoveListener()
    
public synchronized  voidtestMBeanRemoveTriplet()
    
public  voidtestRegisterJMImplementationDefaultDomainObjectName()
    
public  voidtestRegisterJMImplementationObjectName()
    
public  voidtestRegisterMBeanOnExceptionFromPreRegister()
    
public  voidtestRegisterMBeanOnExceptionFromPreRegister2()
    
public  voidtestRegisterMBeanOnExceptionFromPreRegister3()
     Tests register for an MBean that throws an MBeanRegistrationException from preRegister() method.
public  voidtestRegisterNullObjectName()
     Tests registering with null object name.
public  voidtestRegisterPatternObjectName()
     Tests registering with a pattern object name.
public synchronized  voidtestRemoveBroadcaster()
    
public synchronized  voidtestRemoveListener()
    
public synchronized  voidtestRemoveTriplet()
    
public  voidtestSetAttributeWithBusinessException()
    
public  voidtestSetAttributeWithError()
    
public  voidtestSetAttributeWithNonExistingAttribute()
    
public  voidtestSetAttributeWithNonExistingMBean()
    
public  voidtestSetAttributeWithUncheckedException()
    
public  voidtestUnregisterDelegate()
     Tests unregister the delegate.
public  voidtestUnregisterMBeanOnExceptionFromPreDeregister()
     Tests unregister for an MBean that prevents unregistration by throwing an unchecked exception from its preDeregister() method.
public  voidtestUnregisterMBeanOnExceptionFromPreDeregister2()
     Tests unregister for an MBean that prevents unregistration by throwing a checked exception from its preDeregister() method.
public  voidtestUnregisterMBeanOnExceptionFromPreDeregister3()
     Tests unregister for an MBean that prevents unregistration by throwing a MBeanRegistrationException from its preDeregister() method.
public  voidtestUnregisterWithDefaultDomainName()
    
public  voidtestUnregisterWithObjectNameFromRegistration()
     Tests unregister with default domain name gotten from ObjectInstance at registration time.
public synchronized  voidtestaddMBeanToDelegate()
    


Constructor Detail
MBeanServerTEST
public MBeanServerTEST(String s)(Code)




Method Detail
testAddListenerMultipleHandbacks
public synchronized void testAddListenerMultipleHandbacks() throws Exception(Code)
Tests one listener multiple handbacks



testAddListenerToTwoBroadcasters
public synchronized void testAddListenerToTwoBroadcasters() throws Exception(Code)
Tests adding the listener to different broadcasters



testAddListenerToTwoBroadcastersRemoveOne
public synchronized void testAddListenerToTwoBroadcastersRemoveOne() throws Exception(Code)
Tests adding the listener to different broadcasters but remove one



testAddMBeanListenerMultipleHandbacks
public synchronized void testAddMBeanListenerMultipleHandbacks() throws Exception(Code)
Tests one listener multiple handbacks



testAddMBeanListenerToTwoBroadcasters
public synchronized void testAddMBeanListenerToTwoBroadcasters() throws Exception(Code)
Tests adding the listener to different broadcasters



testAddMBeanListenerToTwoBroadcastersRemoveOne
public synchronized void testAddMBeanListenerToTwoBroadcastersRemoveOne() throws Exception(Code)
Tests adding the listener to different broadcasters but remove one



testAddMBeanMultipleListeners
public synchronized void testAddMBeanMultipleListeners() throws Exception(Code)
Tests multiple listeners with different handbacks



testAddMultipleListeners
public synchronized void testAddMultipleListeners() throws Exception(Code)
Tests multiple listeners with different handbacks



testAddNotificationListenerToDelegate
public synchronized void testAddNotificationListenerToDelegate() throws Exception(Code)
Tests basic listener registration to server delegate



testBasicUnregister
public void testBasicUnregister() throws Exception(Code)
Tests basic register/unregister



testGetAttributeWithBusinessException
public void testGetAttributeWithBusinessException() throws Exception(Code)



testGetAttributeWithError
public void testGetAttributeWithError() throws Exception(Code)



testGetAttributeWithNonExistingAttribute
public void testGetAttributeWithNonExistingAttribute() throws Exception(Code)



testGetAttributeWithNonExistingMBean
public void testGetAttributeWithNonExistingMBean() throws Exception(Code)



testGetAttributeWithUncheckedException
public void testGetAttributeWithUncheckedException() throws Exception(Code)



testGetDomains
public void testGetDomains() throws Exception(Code)



testInstantiateWithDefaultConstructor
public void testInstantiateWithDefaultConstructor() throws Exception(Code)
Tests instantiate(String className). Class defined by system classloader.



testInstantiateWithDefaultConstructorAndApplicationException
public void testInstantiateWithDefaultConstructorAndApplicationException() throws Exception(Code)
Tests instantiate(String className) with constructor that throws a checked application exception. Class defined by system classloader.



testInstantiateWithDefaultConstructorAndError
public void testInstantiateWithDefaultConstructorAndError() throws Exception(Code)
Tests instantiate(String className) with constructor that throws an error. Class defined by the system classloader.



testInstantiateWithDefaultConstructorAndErrorInInit
public void testInstantiateWithDefaultConstructorAndErrorInInit() throws Exception(Code)
Tests instatiante(String className) with constructor that fails with an error in static init block. Class defined by the system classloader.



testInstantiateWithDefaultConstructorAndExceptionInInit
public void testInstantiateWithDefaultConstructorAndExceptionInInit() throws Exception(Code)
Tests instantiate(String className) with constructor that fails with an unchecked exception in static init block. Class defined by the system classloader.



testInstantiateWithDefaultConstructorAndRuntimeException
public void testInstantiateWithDefaultConstructorAndRuntimeException() throws Exception(Code)
Tests instantiate(String className) with constructor that throws an unchecked application exception. Class defined by the system classloader.



testInstantiateWithDefaultConstructorAndUnknownClass
public void testInstantiateWithDefaultConstructorAndUnknownClass() throws Exception(Code)
Tests instantiate(String className) with unfound class.



testInstantiateWithDefaultLoaderRepository
public void testInstantiateWithDefaultLoaderRepository() throws Exception(Code)
Tests instantiate(String className) classloading behaviour. According to javadoc, DLR should be used to instantiate the class



testInstantiateWithDefaultLoaderRepository2
public void testInstantiateWithDefaultLoaderRepository2() throws Exception(Code)
Tests instantiate(String className, ObjectName loader) classloading behaviour. According to javadoc, DLR should be used to instantiate the class. This should fail as the MLet MBean is never added to the agent and therefore not in the DLR.



testInstantiateWithEmptyClassName
public void testInstantiateWithEmptyClassName() throws Exception(Code)
Tests instantiate(String className) with empty class name string. should throw ReflectionException wrapping CNFE.



testInstantiateWithEmptyClassName2
public void testInstantiateWithEmptyClassName2() throws Exception(Code)
Tests instantiate(String className, ObjectName loader) with empty class name string. should throw ReflectionException wrapping CNFE.



testInstantiateWithEmptyClassName3
public void testInstantiateWithEmptyClassName3() throws Exception(Code)
Tests instantiate(String className, Object[] args, String[] sign) with empty class name string. should throw ReflectionException wrapping CNFE.



testInstantiateWithEmptyClassName4
public void testInstantiateWithEmptyClassName4() throws Exception(Code)
Tests instantiate(String className, ObjectName loader, Object[] args, String[] sign) with empty class name string. should throw ReflectionException wrapping CNFE.



testInstantiateWithInaccessibleNoArgsConstructor
public void testInstantiateWithInaccessibleNoArgsConstructor() throws Exception(Code)
Tests instantiate(String className) with protected (no access) no args constructor.



testInstantiateWithMissingDefaultConstructor
public void testInstantiateWithMissingDefaultConstructor() throws Exception(Code)
Tests instantiate(String className) with class that doesn't have a default constructor.



testInstantiateWithNullClassName
public void testInstantiateWithNullClassName() throws Exception(Code)
Tests instantiate(String className) with null class name. According to javadoc, should throw RuntimeOperationsException wrapping IllegalArgException.



testInstantiateWithNullClassName2
public void testInstantiateWithNullClassName2() throws Exception(Code)
Tests instantiate(String className, ObjectName loader) with null class name. According to javadoc, should throw RuntimeOperationsException wrapping IllegalArgException.



testInstantiateWithNullClassName3
public void testInstantiateWithNullClassName3() throws Exception(Code)
Tests instantiate(String className, Object[] args, String[] sign) with null class name. According to javadoc, should throw RuntimeOperationsException wrapping IllegalArgException.



testInstantiateWithNullClassName4
public void testInstantiateWithNullClassName4() throws Exception(Code)
Tests instantiate(String className, ObjectName loader, Object[] args, String[] sign) with null class name. According to javadoc, should throw RuntimeOperationsException wrapping IllegalArgException.



testInvokeWithBusinessException
public void testInvokeWithBusinessException() throws Exception(Code)
Attempts to invoke a MBean operation that throws a business exception; MBeanException should be thrown.



testInvokeWithLongArrayReturn
public void testInvokeWithLongArrayReturn() throws Exception(Code)
Tests invoke with Long array return type.




testInvokeWithLongSignature
public void testInvokeWithLongSignature() throws Exception(Code)
Tests invoke with long signature.




testInvokeWithMixedSignature
public void testInvokeWithMixedSignature() throws Exception(Code)
Tests invoke with mixed types in signature, especially types with double byte code length and arrays.




testInvokeWithNonExistantMBean
public void testInvokeWithNonExistantMBean() throws Exception(Code)
Attempts to invoke a method on an unregistered MBean; InstanceNotFoundException should occur.



testInvokeWithPrimitiveBooleanReturn
public void testInvokeWithPrimitiveBooleanReturn() throws Exception(Code)
Tests invoke with primitive boolean return type.




testInvokeWithPrimitiveDoubleReturn
public void testInvokeWithPrimitiveDoubleReturn() throws Exception(Code)
Tests invoke with primitive double return type.




testInvokeWithPrimitiveLongArrayReturn
public void testInvokeWithPrimitiveLongArrayReturn() throws Exception(Code)
Tests invoke with primitive long array return type.




testInvokeWithPrimitiveLongReturn
public void testInvokeWithPrimitiveLongReturn() throws Exception(Code)
Tests invoke with primitive long return type.




testIsInstanceOf
public void testIsInstanceOf() throws Exception(Code)



testIsInstanceOfErrors
public void testIsInstanceOfErrors() throws Exception(Code)



testMBeanRedeployNotification
public synchronized void testMBeanRedeployNotification() throws Exception(Code)
Tests MBeanRedeploy notification



testMBeanRemoveBroadcaster
public synchronized void testMBeanRemoveBroadcaster() throws Exception(Code)
Tests removing a broadcaster



testMBeanRemoveListener
public synchronized void testMBeanRemoveListener() throws Exception(Code)
Tests removing a notification listener including multiple handbacks



testMBeanRemoveTriplet
public synchronized void testMBeanRemoveTriplet() throws Exception(Code)
Tests removing a notification listener triple



testRegisterJMImplementationDefaultDomainObjectName
public void testRegisterJMImplementationDefaultDomainObjectName() throws Exception(Code)
Tests registering into JMImplementation using default domain



testRegisterJMImplementationObjectName
public void testRegisterJMImplementationObjectName() throws Exception(Code)
Tests registering into JMImplementation



testRegisterMBeanOnExceptionFromPreRegister
public void testRegisterMBeanOnExceptionFromPreRegister() throws Exception(Code)
Tests register for an MBean that throws unchecked exception from preRegister()



testRegisterMBeanOnExceptionFromPreRegister2
public void testRegisterMBeanOnExceptionFromPreRegister2() throws Exception(Code)
Tests register for an MBean that throws checked exception from preRegister()



testRegisterMBeanOnExceptionFromPreRegister3
public void testRegisterMBeanOnExceptionFromPreRegister3() throws Exception(Code)
Tests register for an MBean that throws an MBeanRegistrationException from preRegister() method.



testRegisterNullObjectName
public void testRegisterNullObjectName() throws Exception(Code)
Tests registering with null object name.



testRegisterPatternObjectName
public void testRegisterPatternObjectName() throws Exception(Code)
Tests registering with a pattern object name.



testRemoveBroadcaster
public synchronized void testRemoveBroadcaster() throws Exception(Code)
Tests removing a broadcaster



testRemoveListener
public synchronized void testRemoveListener() throws Exception(Code)
Tests removing a notification listener including multiple handbacks



testRemoveTriplet
public synchronized void testRemoveTriplet() throws Exception(Code)
Tests removing a notification listener triplet



testSetAttributeWithBusinessException
public void testSetAttributeWithBusinessException() throws Exception(Code)



testSetAttributeWithError
public void testSetAttributeWithError() throws Exception(Code)



testSetAttributeWithNonExistingAttribute
public void testSetAttributeWithNonExistingAttribute() throws Exception(Code)



testSetAttributeWithNonExistingMBean
public void testSetAttributeWithNonExistingMBean() throws Exception(Code)



testSetAttributeWithUncheckedException
public void testSetAttributeWithUncheckedException() throws Exception(Code)



testUnregisterDelegate
public void testUnregisterDelegate() throws Exception(Code)
Tests unregister the delegate.



testUnregisterMBeanOnExceptionFromPreDeregister
public void testUnregisterMBeanOnExceptionFromPreDeregister() throws Exception(Code)
Tests unregister for an MBean that prevents unregistration by throwing an unchecked exception from its preDeregister() method.



testUnregisterMBeanOnExceptionFromPreDeregister2
public void testUnregisterMBeanOnExceptionFromPreDeregister2() throws Exception(Code)
Tests unregister for an MBean that prevents unregistration by throwing a checked exception from its preDeregister() method.



testUnregisterMBeanOnExceptionFromPreDeregister3
public void testUnregisterMBeanOnExceptionFromPreDeregister3() throws Exception(Code)
Tests unregister for an MBean that prevents unregistration by throwing a MBeanRegistrationException from its preDeregister() method. This should be rethrown by the agent as-is, and not wrapped into another MBeanRegistrationException.



testUnregisterWithDefaultDomainName
public void testUnregisterWithDefaultDomainName() throws Exception(Code)
Tests unregister with default domain name



testUnregisterWithObjectNameFromRegistration
public void testUnregisterWithObjectNameFromRegistration() throws Exception(Code)
Tests unregister with default domain name gotten from ObjectInstance at registration time.



testaddMBeanToDelegate
public synchronized void testaddMBeanToDelegate() throws Exception(Code)
Tests basic listener registration to server delegate



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.