| | |
| | | import static org.testng.Assert.*; |
| | | |
| | | /** |
| | | * Test password control |
| | | * Test password control. |
| | | */ |
| | | public class PasswordControlTest |
| | | extends ControlsTestCase |
| | | { |
| | | |
| | | /** |
| | | * Create values for PasswordPolicyErrorType |
| | | * Create values for PasswordPolicyErrorType. |
| | | */ |
| | | @DataProvider(name = "passwordPolicyErrorTypeData") |
| | | public Object[][] createPasswordPolicyErrorTypeData() |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test if int value are ok |
| | | * Test if int value are ok. |
| | | */ |
| | | @Test(dataProvider = "passwordPolicyErrorTypeData") |
| | | public void checkIntValuePasswordPolicyErrorTypeTest( |
| | |
| | | |
| | | |
| | | /** |
| | | * Test If we have only the required values |
| | | * Test If we have only the required values. |
| | | */ |
| | | @Test(dataProvider = "passwordPolicyErrorTypeData") |
| | | public void checkRequiredValuesPasswordPolicyErrorTypeTest( |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test invalid int values |
| | | * Test invalid int values. |
| | | */ |
| | | @Test(dataProvider = "passwordPolicyErrorTypeData") |
| | | public void checkInvalidIntPasswordPolicyErrorTypeTest( |
| | |
| | | } |
| | | |
| | | /** |
| | | * Create correct values |
| | | * Create correct values. |
| | | */ |
| | | @DataProvider(name = "passwordPolicyWarningTypeData") |
| | | public Object[][] createPasswordPolicyWarningTypeData() |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test if byte values are ok |
| | | * Test if byte values are ok. |
| | | */ |
| | | @Test(dataProvider = "passwordPolicyWarningTypeData") |
| | | public void checkIntValuePasswordPolicyWarningTypeTest( |
| | |
| | | |
| | | |
| | | /** |
| | | * Test If we have only the required values |
| | | * Test If we have only the required values. |
| | | */ |
| | | @Test(dataProvider = "passwordPolicyWarningTypeData") |
| | | public void checkRequiredValuesPasswordPolicyWarningTypeTest( |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test invalid int values |
| | | * Test invalid int values. |
| | | */ |
| | | @Test(dataProvider = "passwordPolicyWarningTypeData") |
| | | public void checkInvalidIntPasswordPolicyWarningTypeTest( |
| | |
| | | } |
| | | |
| | | /** |
| | | * Create values for PasswordExpiredControl |
| | | * Create values for PasswordExpiredControl. |
| | | */ |
| | | @DataProvider(name = "passwordExpiredControlData") |
| | | public Object[][] createPasswordExpiredControlData() |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test OID |
| | | * Test OID. |
| | | */ |
| | | @Test |
| | | public void checkPasswordOID() throws Exception |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test "Netscape password expired control" implementation |
| | | * Test "Netscape password expired control" implementation. |
| | | */ |
| | | @Test(dataProvider = "passwordExpiredControlData") |
| | | public void passwordExpiredControlTest( |
| | |
| | | } |
| | | |
| | | /** |
| | | * Create values for PasswordControl |
| | | * Create values for PasswordControl. |
| | | */ |
| | | @DataProvider(name = "passwordExpiringControlData") |
| | | public Object[][] createPasswordExpiringControlData() |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test "Netscape password expired control" implementation |
| | | * Test "Netscape password expired control" implementation. |
| | | */ |
| | | @Test(dataProvider = "passwordExpiringControlData") |
| | | public void passwordExpiringControlTest( |
| | |
| | | } |
| | | |
| | | /** |
| | | * Create values for PasswordControl |
| | | * Create values for PasswordControl. |
| | | */ |
| | | @DataProvider(name = "passwordPolicyRequestControlData") |
| | | public Object[][] createPasswordPolicyRequestControlData() |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test PasswordPolicyRequestControl |
| | | * Test PasswordPolicyRequestControl. |
| | | */ |
| | | @Test(dataProvider = "passwordPolicyRequestControlData") |
| | | public void passwordPolicyRequestControlTest( |
| | |
| | | |
| | | |
| | | /** |
| | | * Create values for PasswordControl |
| | | * Create values for PasswordControl. |
| | | */ |
| | | @DataProvider(name = "passwordPolicyResponseControl") |
| | | public Object[][] createPasswordPolicyResponseControlData() |
| | |
| | | } |
| | | |
| | | /** |
| | | * Test PasswordPolicyResponseControl |
| | | * Test PasswordPolicyResponseControl. |
| | | */ |
| | | @Test(dataProvider = "passwordPolicyResponseControl") |
| | | public void passwordPolicyResponseControlTest( |