@Test public void testConstructorFromProblem() { Problem problem = new TestProblem(); AppFatalException instance = new AppFatalException(problem); assertEquals(instance.getMessage(), problem.getFullMessage()); assertNotNull(instance.getProblems()); assertEquals(instance.getProblems().get(0), problem); problem = null; instance = new AppFatalException(problem); assertEquals(instance.getMessage(), "Unknown AndHow fatal exception"); assertNotNull(instance.getProblems()); assertEquals(0, instance.getProblems().size()); }
public ProblemList<Problem> getProblems() { return problems; }
AppFatalException extends RuntimeException { public ProblemList<Problem> getProblems() { return problems; } }
AppFatalException extends RuntimeException { public ProblemList<Problem> getProblems() { return problems; } AppFatalException(String message, Throwable throwable);  AppFatalException(String message);  AppFatalException(String message, ProblemList<Problem> problems);  AppFatalException(String message, Problem problem);  AppFatalException(Problem problem); }
AppFatalException extends RuntimeException { public ProblemList<Problem> getProblems() { return problems; } AppFatalException(String message, Throwable throwable);  AppFatalException(String message);  AppFatalException(String message, ProblemList<Problem> problems);  AppFatalException(String message, Problem problem);  AppFatalException(Problem problem); ProblemList<Problem> getProblems(); String getSampleDirectory(); void setSampleDirectory(String sampleDirectory); }
AppFatalException extends RuntimeException { public ProblemList<Problem> getProblems() { return problems; } AppFatalException(String message, Throwable throwable);  AppFatalException(String message);  AppFatalException(String message, ProblemList<Problem> problems);  AppFatalException(String message, Problem problem);  AppFatalException(Problem problem); ProblemList<Problem> getProblems(); String getSampleDirectory(); void setSampleDirectory(String sampleDirectory);  }