Package tifauv.jplop.core.auth

Examples of tifauv.jplop.core.auth.PasswordException


  /**
   * Test method for {@link tifauv.jplop.board.PasswordException#PasswordException(java.lang.String)}.
   */
  public void testPasswordExceptionString() {
    // Check without message
    Exception e = new PasswordException(null);
    assertNull(e.getMessage());

    // Check with a message
    e = new PasswordException("plop pikaron");
    assertEquals("plop pikaron", e.getMessage());
  }
View Full Code Here


  /**
   * 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());
  }
View Full Code Here

TOP

Related Classes of tifauv.jplop.core.auth.PasswordException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.