Package org.gitective.core

Examples of org.gitective.core.GitException


  public void constructors() throws IOException {
    String message = "test";
    NullPointerException cause = new NullPointerException();
    FileRepository repo = new FileRepository(testRepo);

    GitException exception = new GitException(message, repo);
    assertEquals(repo, exception.getRepository());
    assertEquals(message, exception.getMessage());

    exception = new GitException(message, cause, repo);
    assertEquals(repo, exception.getRepository());
    assertEquals(cause, exception.getCause());
    assertEquals(message, exception.getMessage());

    exception = new GitException(repo);
    assertEquals(repo, exception.getRepository());
    assertNull(exception.getCause());
    assertNull(exception.getMessage());
  }
View Full Code Here

TOP

Related Classes of org.gitective.core.GitException

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.