Searched refs:metricsForPassword (Results 1 – 2 of 2) sorted by relevance
100 final PasswordMetrics metrics = metricsForPassword("6B~0z1Z3*8A"); in testComputeForPassword_metrics()148 assertEquals(PASSWORD_COMPLEXITY_LOW, metricsForPassword("a!").determineComplexity()); in testDetermineComplexity_lowAlphabetic()153 assertEquals(PASSWORD_COMPLEXITY_LOW, metricsForPassword("a!1").determineComplexity()); in testDetermineComplexity_lowAlphanumeric()163 assertEquals(PASSWORD_COMPLEXITY_MEDIUM, metricsForPassword("ab!c").determineComplexity()); in testDetermineComplexity_mediumAlphabetic()168 assertEquals(PASSWORD_COMPLEXITY_MEDIUM, metricsForPassword("ab!1").determineComplexity()); in testDetermineComplexity_mediumAlphanumeric()179 metricsForPassword("alphabetic!").determineComplexity()); in testDetermineComplexity_highAlphabetic()185 metricsForPassword("alphanumeric123!").determineComplexity()); in testDetermineComplexity_highAlphanumeric()409 private static PasswordMetrics metricsForPassword(String password) { in metricsForPassword() method in PasswordMetricsTest
5488 PasswordMetrics passwordMetricsNoSymbols = metricsForPassword("abcdXYZ5"); in testIsActivePasswordSufficient()5515 PasswordMetrics passwordMetricsWithSymbols = metricsForPassword("abcd.XY5"); in testIsActivePasswordSufficient()5704 .thenReturn(metricsForPassword("abcdXYZ5")); in isActivePasswordSufficient_SeparateWorkChallenge_ProfileQualityRequirementMet()5754 .thenReturn(metricsForPassword("acbdXYZ5")); in isActivePasswordSufficient_SeparateWorkChallenge_ParentQualityRequirementMet()5802 .thenReturn(metricsForPassword("abcdXYZ5")); in isActivePasswordSufficient_UnifiedWorkChallenge_ProfileQualityRequirementMet()5850 .thenReturn(metricsForPassword("abcdXYZ5")); in isActivePasswordSufficient_UnifiedWorkChallenge_ParentQualityRequirementMet()6930 .thenReturn(metricsForPassword("asdf")); in testGetPasswordComplexity_currentUserHasPassword()6950 .thenReturn(metricsForPassword("asdf")); in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword()6953 .thenReturn(metricsForPassword("parentUser")); in testGetPasswordComplexity_unifiedChallengeReturnsParentUserPassword()7682 passwordMetricsNoSymbols = metricsForPassword("84125312943a"); in testSetRequiredPasswordComplexity_isSufficient()[all …]