Package org.jboss.test.messaging.tools.container

Examples of org.jboss.test.messaging.tools.container.MockJBossSecurityManager


      if(ServerManagement.isRemote())
      {
         fail("This test is supposed to be run in a local configuration");
      }

      MockJBossSecurityManager sm =
         (MockJBossSecurityManager)ic.lookup(MockJBossSecurityManager.TEST_SECURITY_DOMAIN);
      assertTrue(sm.isSimulateJBossJaasSecurityManager());

      Principal nabopolassar = new SimplePrincipal("nabopolassar");
      Set principals = new HashSet();
      principals.add(nabopolassar);
      Subject subject =
View Full Code Here


      if(ServerManagement.isRemote())
      {
         fail("This test is supposed to be run in a local configuration");
      }

      MockJBossSecurityManager sm =
         (MockJBossSecurityManager)ic.lookup(MockJBossSecurityManager.TEST_SECURITY_DOMAIN);
      assertTrue(sm.isSimulateJBossJaasSecurityManager());

      Principal nabopolassar = new SimplePrincipal("nabopolassar");
      Set principals = new HashSet();
      principals.add(nabopolassar);
      Subject subject =
View Full Code Here

      // make MockSecurityManager simulate JaasSecurityManager behavior. This is the whole point
      // of this test, to catch JBoss AS integreation failure before the integration test suite
      // does. However, this MUST NOT be a replacement for integration tests, it's just an
      // additional safety layer.

      MockJBossSecurityManager sm =
         (MockJBossSecurityManager)ic.lookup(MockJBossSecurityManager.TEST_SECURITY_DOMAIN);

      sm.setSimulateJBossJaasSecurityManager(true);

      log.debug("setup done");
   }
View Full Code Here

   protected void tearDown() throws Exception
   {  
     super.tearDown();
    
      MockJBossSecurityManager sm =
         (MockJBossSecurityManager)ic.lookup(MockJBossSecurityManager.TEST_SECURITY_DOMAIN);

      sm.setSimulateJBossJaasSecurityManager(false);

      ServerManagement.configureSecurityForDestination("Queue2", null);
   }
View Full Code Here

      if(ServerManagement.isRemote())
      {
         fail("This test is supposed to be run in a local configuration");
      }

      MockJBossSecurityManager sm =
         (MockJBossSecurityManager)ic.lookup(MockJBossSecurityManager.TEST_SECURITY_DOMAIN);
      assertTrue(sm.isSimulateJBossJaasSecurityManager());

      Principal nabopolassar = new SimplePrincipal("nabopolassar");
      Set principals = new HashSet();
      principals.add(nabopolassar);
      Subject subject =
View Full Code Here

      if(ServerManagement.isRemote())
      {
         fail("This test is supposed to be run in a local configuration");
      }

      MockJBossSecurityManager sm =
         (MockJBossSecurityManager)ic.lookup(MockJBossSecurityManager.TEST_SECURITY_DOMAIN);
      assertTrue(sm.isSimulateJBossJaasSecurityManager());

      Principal nabopolassar = new SimplePrincipal("nabopolassar");
      Set principals = new HashSet();
      principals.add(nabopolassar);
      Subject subject =
View Full Code Here

      // make MockSecurityManager simulate JaasSecurityManager behavior. This is the whole point
      // of this test, to catch JBoss AS integreation failure before the integration test suite
      // does. However, this MUST NOT be a replacement for integration tests, it's just an
      // additional safety layer.

      MockJBossSecurityManager sm =
         (MockJBossSecurityManager)ic.lookup(MockJBossSecurityManager.TEST_SECURITY_DOMAIN);

      sm.setSimulateJBossJaasSecurityManager(true);

      log.debug("setup done");
   }
View Full Code Here

   protected void tearDown() throws Exception
   {  
     super.tearDown();
    
      MockJBossSecurityManager sm =
         (MockJBossSecurityManager)ic.lookup(MockJBossSecurityManager.TEST_SECURITY_DOMAIN);

      sm.setSimulateJBossJaasSecurityManager(false);

      ServerManagement.configureSecurityForDestination("Queue2", null);
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.messaging.tools.container.MockJBossSecurityManager

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.