1 18 package org.apache.batik.test; 19 20 27 public interface TestReport { 28 35 public static final String ERROR_INTERNAL_TEST_FAILURE 36 = "TestReport.error.internal.test.failure"; 37 38 42 public static final String ERROR_TEST_FAILED 43 = "TestReport.error.test.failed"; 44 45 48 public static final String ERROR_ASSERTION_FAILED 49 = "TestReport.error.assertion.failed"; 50 51 55 public static final String 56 ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_CLASS 57 = "TestReport.entry.key.internal.test.failure.exception.class"; 58 59 63 public static final String 64 ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_MESSAGE 65 = "TestReport.entry.key.internal.test.failure.exception.message"; 66 67 71 public static final String 72 ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_STACK_TRACE 73 = "TestReport.entry.key.internal.test.failure.exception.stack.trace"; 74 75 84 public static final String 85 ENTRY_KEY_REPORTED_TEST_FAILURE_EXCEPTION_CLASS 86 = "TestReport.entry.key.reported.test.failure.exception.class"; 87 88 97 public static final String 98 ENTRY_KEY_REPORTED_TEST_FAILURE_EXCEPTION_MESSAGE 99 = "TestReport.entry.key.reported.test.failure.exception.message"; 100 101 110 public static final String 111 ENTRY_KEY_REPORTED_TEST_FAILURE_EXCEPTION_STACK_TRACE 112 = "TestReport.entry.key.reported.test.failure.exception.stack.trace"; 113 114 118 public static final String 119 ENTRY_KEY_ERROR_CONDITION_STACK_TRACE 120 = "TestReport.entry.key.error.condition.stack.trace"; 121 122 126 public static class Entry { 127 private String entryKey; 128 private Object entryValue; 129 130 public Entry(String entryKey, 131 Object entryValue){ 132 this.entryKey = entryKey; 133 this.entryValue = entryValue; 134 } 135 136 public final String getKey(){ 137 return entryKey; 138 } 139 140 public final Object getValue(){ 141 return entryValue; 142 } 143 } 144 145 148 public boolean hasPassed(); 149 150 154 public String getErrorCode(); 155 156 163 public Entry[] getDescription(); 164 165 168 public void addDescriptionEntry(String key, 169 Object value); 170 171 175 public Test getTest(); 176 177 181 public TestSuiteReport getParentReport(); 182 183 186 public void setParentReport(TestSuiteReport parent); 187 } 188 | Popular Tags |