Package org.jboss.test.messaging.tools.jmx

Examples of org.jboss.test.messaging.tools.jmx.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());

      ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory");
      Queue queue = (Queue)ic.lookup("/queue/SecureTestQueue");

      Principal nabopolassar = new SimplePrincipal("nabopolassar");
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());

      ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory");
      Queue queue = (Queue)ic.lookup("/queue/SecureTestQueue");

      Principal nabopolassar = new SimplePrincipal("nabopolassar");
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

   {
      ServerManagement.undeployQueue("TestQueue");

      ServerManagement.undeployQueue("SecureTestQueue");

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

      sm.setSimulateJBossJaasSecurityManager(false);

      ic.close();

      super.tearDown();
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.messaging.tools.jmx.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.