1 18 package org.apache.batik.test; 19 20 26 public class AssertEqualsException extends AssertException { 27 public static final String ENTRY_KEY_REF_OBJECT 28 = "AssertEqualsException.entry.key.ref.object"; 29 30 public static final String ENTRY_KEY_CMP_OBJECT 31 = "AssertEqualsException.entry.key.cmp.object"; 32 33 public static final String ASSERTION_TYPE = "assertEquals"; 34 35 38 protected Object ref, cmp; 39 40 public AssertEqualsException(Object ref, Object cmp){ 41 this.ref = ref; 42 this.cmp = cmp; 43 } 44 45 49 public void addDescription(TestReport report){ 50 report.addDescriptionEntry(ENTRY_KEY_REF_OBJECT, ref); 51 report.addDescriptionEntry(ENTRY_KEY_CMP_OBJECT, cmp); 52 } 53 54 public String getAssertionType(){ 55 return ASSERTION_TYPE; 56 } 57 } 58 | Popular Tags |