/**
* Test method for {@link tifauv.jplop.board.PasswordException#PasswordException(java.lang.String, java.lang.Throwable)}.
*/
public void testPasswordExceptionStringThrowable() {
// Check without message and cause
Exception e = new PasswordException(null, null);
assertNull(e.getMessage());
assertNull(e.getCause());
// Check with a message only
e = new PasswordException("plop pikaron", null);
assertEquals("plop pikaron", e.getMessage());
assertNull(e.getCause());
// Check with a cause only
Exception cause = new Exception();
e = new PasswordException(null, cause);
assertNull(e.getMessage());
assertEquals(cause, e.getCause());
// Check with a message only
e = new PasswordException("plop pikaron", cause);
assertEquals("plop pikaron", e.getMessage());
assertEquals(cause, e.getCause());
}