[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-cvs-commits
Subject:    [jboss-cvs] jbosstest/src/main/org/jboss/test/jmx/test CPManifestUnitTestCase.java
From:       Scott M Stark <starksm () users ! sourceforge ! net>
Date:       2002-07-31 3:45:55
[Download RAW message or body]

  User: starksm 
  Date: 02/07/30 20:45:55

  Modified:    src/main/org/jboss/test/jmx/test CPManifestUnitTestCase.java
  Log:
  Add a testSARManifest testcase
  
  Revision  Changes    Path
  1.4       +21 -1     jbosstest/src/main/org/jboss/test/jmx/test/CPManifestUnitTestCase.java
  
  Index: CPManifestUnitTestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmx/test/CPManifestUnitTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CPManifestUnitTestCase.java	30 Jul 2002 06:44:14 -0000	1.3
  +++ CPManifestUnitTestCase.java	31 Jul 2002 03:45:55 -0000	1.4
  @@ -7,6 +7,8 @@
    */
   package org.jboss.test.jmx.test;
   
  +import javax.management.ObjectName;
  +
   import org.jboss.test.JBossTestCase;
   
   
  @@ -14,7 +16,7 @@
    *
    * @author <a href="mailto:julien_viet@yahoo.fr">Julien Viet</a>
    * @author Scott.Stark@jboss.org
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public class CPManifestUnitTestCase extends JBossTestCase 
   {
  @@ -55,4 +57,22 @@
         getLog().info("Found Concrete home="+home);
         undeploy("cpcircular-manifest.ear");
      }
  +
  +   /** Test that an ear with the following structure:
  +      external.ear
  +        -+ external.sar, -> ClassPath: external-util.jar
  +        -+ external-util.jar
  +    whose jboss-app.xml only refers to external.sar is able to
  +    load the mbean service in the external.sar
  +    */
  +   public void testSARManifest() throws Exception
  +   {
  +      getLog().info("+++ testSARManifest");
  +      deploy("external.ear");
  +      ObjectName serviceName = new ObjectName("test:name=ExternalClass");
  +      boolean isRegisterd = getServer().isRegistered(serviceName);
  +      assertTrue("ExternalClass service is registered", isRegisterd);
  +      undeploy("external.ear");
  +   }
   }
  +
  
  
  


-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic