Class AdminContextTest


  • public class AdminContextTest
    extends OBBaseTest
    Tests the usage of the OBContext.setAdminMode() and OBContext.restorePreviousMode(). See these issues: - https://issues.openbravo.com/view.php?id=12594: Make setting of administrator mode less vulnerable for wrong usage - https://issues.openbravo.com/view.php?id=12660: OBContext enableAsAdminContext - resetAsAdminContext should use an stack
    Author:
    mtaal
    • 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.