User: schaefera
  Date: 02/03/07 21:30:48

  Modified:    src/main/org/jboss/test/management/test
                        JSR77SpecUnitTestCase.java
  Log:
  Adjusted the JSR-77 implementation to the current specification. Also the
  StateManageable methods are renamed to avoid conflicts with the JBoss
  MBean lifecycle. Also XDoclet is used to generated the StandardMBean
  interfaces.
  
  Revision  Changes    Path
  1.4       +7 -7      
jbosstest/src/main/org/jboss/test/management/test/JSR77SpecUnitTestCase.java
  
  Index: JSR77SpecUnitTestCase.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/management/test/JSR77SpecUnitTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JSR77SpecUnitTestCase.java        16 Feb 2002 11:27:02 -0000      1.3
  +++ JSR77SpecUnitTestCase.java        8 Mar 2002 05:30:48 -0000       1.4
  @@ -35,7 +35,7 @@
    * These test the basic JSR-77 handling and access.
    *
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    *   
    * <p><b>Revisions:</b>
    *
  @@ -114,14 +114,14 @@
         Management lManagement = getManagementEJB();
         Set lNames = lManagement.queryNames(
            new ObjectName(
  -            lManagement.getDefaultDomain() + ":type=J2EEDomain,*"
  +            lManagement.getDefaultDomain() + ":j2eeType=J2EEDomain,*"
            )
         );
         if( lNames.isEmpty() ) {
  -         fail( "Could not found JSR-77 root object of type 'J2EEDomain'" );
  +         fail( "Could not found JSR-77 root object of j2eeType 'J2EEDomain'" );
         }
         if( lNames.size() > 1 ) {
  -         fail( "Found more than one JSR-77 root objects of type 'J2EEDomain'" );
  +         fail( "Found more than one JSR-77 root objects of j2eeType 'J2EEDomain'" );
         }
         ObjectName lManagementDomain = (ObjectName) lNames.iterator().next();
         getLog().debug( "+++ testGetManagementDomain, root: " + lManagementDomain );
  @@ -140,7 +140,7 @@
         Management lManagement = getManagementEJB();
         Set lNames = lManagement.queryNames(
            new ObjectName(
  -            lManagement.getDefaultDomain() + ":type=JDBCDataSource,name=DefaultDS,*"
  +            lManagement.getDefaultDomain() + 
":j2eeType=JDBCDataSource,name=DefaultDS,*"
            )
         );
         if( lNames.isEmpty() ) {
  @@ -169,7 +169,7 @@
         Management lManagement = getManagementEJB();
         Set lNames = lManagement.queryNames(
            new ObjectName(
  -            lManagement.getDefaultDomain() + ":type=JDBCDataSource,name=DefaultDS,*"
  +            lManagement.getDefaultDomain() + 
":j2eeType=JDBCDataSource,name=DefaultDS,*"
            )
         );
         if( lNames.isEmpty() ) {
  @@ -199,7 +199,7 @@
         Management lManagement = getManagementEJB();
         Set lNames = lManagement.queryNames(
            new ObjectName(
  -            lManagement.getDefaultDomain() + ":type=JDBCDataSource,name=DefaultDS,*"
  +            lManagement.getDefaultDomain() + 
":j2eeType=JDBCDataSource,name=DefaultDS,*"
            )
         );
         if( lNames.isEmpty() ) {
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to