1 18 package org.apache.batik.test; 19 20 26 public abstract class AssertException extends TestErrorConditionException { 27 public static final String ENTRY_KEY_ASSERTION_TYPE 28 = "AssertException.entry.key.assertion.type"; 29 30 33 public TestReport getTestReport(Test test){ 34 DefaultTestReport report = new DefaultTestReport(test); 35 report.setErrorCode(TestReport.ERROR_ASSERTION_FAILED); 36 report.addDescriptionEntry(ENTRY_KEY_ASSERTION_TYPE, 37 getAssertionType()); 38 addDescription(report); 39 addStackTraceDescription(report); 40 report.setPassed(false); 41 return report; 42 } 43 44 48 public abstract void addDescription(TestReport report); 49 50 53 public abstract String getAssertionType(); 54 } 55 | Popular Tags |