mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

lutoff
26.49.2006 31136dc09d07371c180a66c94cb43db172973ddc
Update controls unit-test
1 files modified
12 ■■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/controls/PasswordControlTest.java 12 ●●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/controls/PasswordControlTest.java
@@ -325,7 +325,7 @@
    assertNotNull(newPec);
    assertEquals(newPec.isCritical(), isCritical);
    assertEquals(newPec.getOID(), oid);
    // assertEquals(newPec.getSecondsUntilExpiration(), sec);
    assertEquals(newPec.getSecondsUntilExpiration(), sec);
  }
  
  /**
@@ -490,12 +490,11 @@
        try
        {
          pprc = PasswordPolicyResponseControl.decodeControl(control);
//          assertTrue(false,"the warning type shouldn't be null");
          assertNull(pprc.getWarningType());
        }
        catch (LDAPException e)
        {
          // normal case
          assertTrue(true,"the warning type shouldn't be null");
          assertTrue(false,"We should be able to decode the control");
        }
        
        // check null error type
@@ -504,12 +503,11 @@
        try
        {
          pprc = PasswordPolicyResponseControl.decodeControl(control);
//          assertTrue(false,"the error type shouldn't be null");
          assertNull(pprc.getErrorType());
        }
        catch (LDAPException e)
        {
          // normal case
          assertTrue(true,"the error type shouldn't be null");
          assertTrue(false,"We should be able to decode the control");
        }
      }
    }