Class AdminContextTest

  • public class AdminContextTest
    extends OBBaseTest
    Tests the usage of the OBContext.setAdminMode() and OBContext.restorePreviousMode(). See these issues: - Make setting of administrator mode less vulnerable for wrong usage - OBContext enableAsAdminContext - resetAsAdminContext should use an stack
    • Constructor Detail

      • AdminContextTest

        public AdminContextTest()
    • Method Detail

      • testSingleAdminContextCall

        public void testSingleAdminContextCall()
        Test a single call to the admin context setting.
      • testMultipleAdminContextCall

        public void testMultipleAdminContextCall()
        Test multiple nested calls to setting and reseting admin context.