@Test public void checkFormatTest() throws Exception { String actual = null + ""; try { String pwd = buildPassword(); System.out.println("PW: " + pwd); checkFormat(pwd); } catch (Exception e) { actual = e.toString(); } Assert.assertEquals(expected + "", actual); }
public void checkFormat(String pwd) { }
Password { public void checkFormat(String pwd) { } }
Password { public void checkFormat(String pwd) { } Password(int nrUpperShould, int nrLowerShould, int nrSpecialShould, int nrNumbersShould, int lengthShould, char[] illegalChars); }
Password { public void checkFormat(String pwd) { } Password(int nrUpperShould, int nrLowerShould, int nrSpecialShould, int nrNumbersShould, int lengthShould, char[] illegalChars); void checkFormat(String pwd); static void main(String args[]); }
Password { public void checkFormat(String pwd) { } Password(int nrUpperShould, int nrLowerShould, int nrSpecialShould, int nrNumbersShould, int lengthShould, char[] illegalChars); void checkFormat(String pwd); static void main(String args[]);  }