Package org.jboss.kernel.spi.deployment

Examples of org.jboss.kernel.spi.deployment.KernelDeployment


   }

   public void testPropertyAnnotationOverride() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_OverrideProperty.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData classMetaData = assertMetaData();
         MetaData metaData = classMetaData.getComponentMetaData(new MethodSignature("getSomething"));
View Full Code Here


   }

   public void testPropertyAnnotationNew() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_NewProperty.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData classMetaData = assertMetaData();
         MetaData metaData = classMetaData.getComponentMetaData(new MethodSignature("getSomething"));
View Full Code Here

      super(name);
   }

   public void testRedeployAfterError() throws Throwable
   {
      KernelDeployment deployment = deploy("RedeployAfterErrorTestCase_bad.xml");
      try
      {
         ControllerContext context = getControllerContext("Name1", null);
         assertEquals(ControllerState.ERROR, context.getState());
         checkThrowable(ClassNotFoundException.class, context.getError());
View Full Code Here

      }
   }

   public void testChangeUsage() throws Throwable
   {
      KernelDeployment deployment = deploy("RedeployAfterErrorTestCase_bad.xml");
      try
      {
         KernelControllerContext context = getControllerContext("Name1", null);
         assertEquals(ControllerState.ERROR, context.getState());
         checkThrowable(ClassNotFoundException.class, context.getError());
View Full Code Here

      MemoryMetaDataLoader stringProperty = new MemoryMetaDataLoader(setStringScope);
      stringProperty.addAnnotation(annotation);
      Signature signature = new MethodSignature("setString", String.class);
      loader.addComponentMetaDataRetrieval(signature, stringProperty);
     
      KernelDeployment deployment = deploy("MutableMetaDataTestCase_NotAutomatic.xml");
      try
      {
         validate();
        
         ControllerContext ctx = getControllerContext("TestBean");
View Full Code Here

   public void testPrivateField() throws Throwable
   {
      PrivateFieldTestBean test = assertBean("Allowed", PrivateFieldTestBean.class);
      assertEquals("private", test.getPrivateStringNotGetter());
     
      KernelDeployment deployment = deploy("FieldAccessControlTestCase_NotAutomatic.xml");
      try
      {
         ControllerContext context = getControllerContext("NotAllowed", null);
         assertEquals(ControllerState.ERROR, context.getState());
         checkDeepThrowable(AccessControlException.class, context.getError());
View Full Code Here

      assertEquals(classLoader, TestClassLoaderBean.getAndResetClassLoader());
   }
  
   public void testFactory() throws Throwable
   {
      KernelDeployment deployment = deploy("ContextClassLoaderTestCase_Factory.xml");
      try
      {
         validate();
         assertClassLoader();
      }
View Full Code Here

      }
   }
  
   public void testConstructor() throws Throwable
   {
      KernelDeployment deployment = deploy("ContextClassLoaderTestCase_Constructor.xml");
      try
      {
         validate();
         assertClassLoader();
      }
View Full Code Here

      }
   }
  
   public void testConfigure() throws Throwable
   {
      KernelDeployment deployment = deploy("ContextClassLoaderTestCase_Configure.xml");
      ClassLoader cl = null;
      try
      {
         validate();
         cl = assertClassLoader();
View Full Code Here

      checkClassLoader(cl);
   }
  
   public void testCreate() throws Throwable
   {
      KernelDeployment deployment = deploy("ContextClassLoaderTestCase_Create.xml");
      try
      {
         assertClassLoader();
      }
      finally
View Full Code Here

TOP

Related Classes of org.jboss.kernel.spi.deployment.KernelDeployment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.