@Test public void shouldReturnFalseIfThePasswordToCheckIsNullOrEmpty() { assertThat(CommonPasswordsDictionary.contains(null)).isFalse(); assertThat(CommonPasswordsDictionary.contains("")).isFalse(); assertThat(CommonPasswordsDictionary.contains(" ")).isFalse(); }
public static boolean contains(String password) { return StringUtils.isBlank(password) ? false : !passwords.parallelStream().filter(pw -> pw.equalsIgnoreCase(password)).collect(Collectors.toList()).isEmpty(); }
CommonPasswordsDictionary { public static boolean contains(String password) { return StringUtils.isBlank(password) ? false : !passwords.parallelStream().filter(pw -> pw.equalsIgnoreCase(password)).collect(Collectors.toList()).isEmpty(); } }
CommonPasswordsDictionary { public static boolean contains(String password) { return StringUtils.isBlank(password) ? false : !passwords.parallelStream().filter(pw -> pw.equalsIgnoreCase(password)).collect(Collectors.toList()).isEmpty(); } private  CommonPasswordsDictionary(); }
CommonPasswordsDictionary { public static boolean contains(String password) { return StringUtils.isBlank(password) ? false : !passwords.parallelStream().filter(pw -> pw.equalsIgnoreCase(password)).collect(Collectors.toList()).isEmpty(); } private  CommonPasswordsDictionary(); static List<String> list(); static boolean contains(String password); }
CommonPasswordsDictionary { public static boolean contains(String password) { return StringUtils.isBlank(password) ? false : !passwords.parallelStream().filter(pw -> pw.equalsIgnoreCase(password)).collect(Collectors.toList()).isEmpty(); } private  CommonPasswordsDictionary(); static List<String> list(); static boolean contains(String password);  }