Package org.jboss.kernel.spi.deployment

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


      return suite(ScopingDependencyTestCase.class);
   }

   public void testScopedChildDependencyOnParent() throws Throwable
   {
      KernelDeployment childDeployment = createChildDeployment(CHILD, PARENT, APP_SCOPE_1, null);
      deploy(childDeployment);

      try
      {
         assertNoSuchContext(CHILD);

         KernelDeployment parentDeployment = createParentDeployment();
         deploy(parentDeployment);

         try
         {
            ControllerContext parent = getControllerContext(PARENT);
View Full Code Here


      }
   }

   public void testScopedChildWithDependencyOnAliasInScopedControllerWithSameNameAsParent() throws Throwable
   {
      KernelDeployment childDeployment = createChildDeployment(CHILD, PARENT, APP_SCOPE_1, null);
      deploy(childDeployment);

      try
      {
         assertNoSuchContext(CHILD);

         KernelDeployment parentInChildScopeDeployment =  createDeployment(SCOPED_PARENT, PARENT_CLASS, null, APP_SCOPE_1, PARENT);

         deploy(parentInChildScopeDeployment);
         try
         {
            ControllerContext scopedParent = getControllerContext(SCOPED_PARENT);
            ControllerContext child = getControllerContext(CHILD);
            assertSame(scopedParent.getController(), child.getController());

            KernelDeployment parentDeployment = createParentDeployment();
            deploy(parentDeployment);
            try
            {
               ControllerContext parent = getControllerContext(PARENT);
               assertNotSame(parent.getController(), child.getController());
View Full Code Here

      }
   }

   public void testScopedChildWithNoDependencyAndGlobalChildWithDependencyOnParent() throws Throwable
   {
      KernelDeployment childDeploymentNoDependencies = createChildDeployment(CHILD, null, APP_SCOPE_2, null);
      deploy(childDeploymentNoDependencies);
      try
      {
         List<KernelControllerContext> contextsNoDependencies = childDeploymentNoDependencies.getInstalledContexts();
         assertEquals(1, contextsNoDependencies.size());
         KernelControllerContext childNoDependencies = contextsNoDependencies.get(0);
         assertEquals(ControllerState.INSTALLED, childNoDependencies.getState());

         KernelDeployment childDeploymentWithDependencies = createChildDeployment(CHILD + 1, CHILD, PARENT, APP_SCOPE_1, null);
         deploy(childDeploymentWithDependencies);
         try
         {
            List<KernelControllerContext> contextsWithDependencies = childDeploymentWithDependencies.getInstalledContexts();
            assertEquals(1, contextsWithDependencies.size());
            KernelControllerContext childWithDependencies = contextsWithDependencies.get(0);
            assertFalse(ControllerState.INSTALLED.equals(childWithDependencies.getState()));
            assertNotSame(childNoDependencies.getController(), childWithDependencies.getController());

            KernelDeployment parentDeployment = createParentDeployment();
            deploy(parentDeployment);
            try
            {
               ControllerContext parent = getControllerContext(PARENT);
               ControllerContext child = getControllerContext(CHILD);
View Full Code Here

      }
   }

   public void testScopedChildWithNoDependencyAndGlobalChildWithDependencyOnParentViaAliases() throws Throwable
   {
      KernelDeployment childDeploymentNoDependencies = createChildDeployment(CHILD + 1, null, APP_SCOPE_2, CHILD);
      deploy(childDeploymentNoDependencies);
      try
      {
         List<KernelControllerContext> contextsNoDependencies = childDeploymentNoDependencies.getInstalledContexts();
         assertEquals(1, contextsNoDependencies.size());
         KernelControllerContext childNoDependencies = contextsNoDependencies.get(0);
         assertEquals(ControllerState.INSTALLED, childNoDependencies.getState());

         KernelDeployment childDeploymentWithDependencies = createChildDeployment(CHILD + 2, CHILD + 2, PARENT, APP_SCOPE_1, CHILD);
         deploy(childDeploymentWithDependencies);
         try
         {
            List<KernelControllerContext> contextsWithDependencies = childDeploymentWithDependencies.getInstalledContexts();
            assertEquals(1, contextsWithDependencies.size());
            KernelControllerContext childWithDependencies = contextsWithDependencies.get(0);
            assertFalse(ControllerState.INSTALLED.equals(childWithDependencies.getState()));
            assertNotSame(childNoDependencies.getController(), childWithDependencies.getController());

            KernelDeployment parentDeployment = createParentDeployment();
            deploy(parentDeployment);
            try
            {
               ControllerContext parent = getControllerContext(PARENT);
               ControllerContext child = getControllerContext(CHILD);
View Full Code Here

      super(name);
   }

   public void testEmptyProperty() throws Exception
   {
      KernelDeployment deployment = deploy("PropertyUsageTestCase_Empty.xml");
      try
      {
         System.out.println("deployment = " + deployment);
/*
         validate();
View Full Code Here

   public void testTouchCachingMetaDataRepository() throws Exception
   {
      TestCachingMetaDataRepository.touched = false;

      KernelDeployment deployment = deploy("ClassAnnotationTestCase_Override.xml");
      try
      {
         MetaData metaData = assertMetaData();
         TestAnnotationA a = assertAnnotation(metaData, TestAnnotationA.class);
         assertEquals("Overridden", a.value());
View Full Code Here

   }

   public void testClassAnnotationNoOverride() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_NoOverride.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData metaData = assertMetaData();
         TestAnnotationA a = assertAnnotation(metaData, TestAnnotationA.class);
View Full Code Here

   }

   public void testClassAnnotationOverride() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_Override.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData metaData = assertMetaData();
         TestAnnotationA a = assertAnnotation(metaData, TestAnnotationA.class);
View Full Code Here

   }

   public void testClassAnnotationNew() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_New.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData metaData = assertMetaData();
         TestAnnotationA a = assertAnnotation(metaData, TestAnnotationA.class);
View Full Code Here

   }

   public void testPropertyAnnotationNoOverride() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_NoOverrideProperty.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData classMetaData = assertMetaData();
         MetaData metaData = classMetaData.getComponentMetaData(new MethodSignature("getSomething"));
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.