1 22 package org.jboss.test.util.ejb; 23 24 import junit.framework.AssertionFailedError; 25 26 40 public class RemoteAssertionFailedError extends AssertionFailedError 41 { 42 private AssertionFailedError remoteAssertionFailedError; 43 private String remoteStackTrace; 44 45 52 public RemoteAssertionFailedError( 53 AssertionFailedError e, 54 String remoteStackTrace) 55 { 56 57 remoteAssertionFailedError = e; 58 this.remoteStackTrace = remoteStackTrace; 59 } 60 61 65 public String getMessage() 66 { 67 return remoteAssertionFailedError.getMessage(); 68 } 69 70 74 public void printStackTrace(java.io.PrintStream ps) 75 { 76 ps.print(remoteStackTrace); 77 } 78 79 82 public void printStackTrace() 83 { 84 printStackTrace(System.err); 85 } 86 87 91 public void printStackTrace(java.io.PrintWriter pw) 92 { 93 pw.print(remoteStackTrace); 94 } 95 96 104 public AssertionFailedError getRemoteAssertionFailedError() 105 { 106 return remoteAssertionFailedError; 107 } 108 109 113 public String getRemoteStackTrace() 114 { 115 return remoteStackTrace; 116 } 117 } 118 | Popular Tags |