Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
public class TipException extends Exception {
private final Object mSource;
private final Object mObjectInError;
private final Throwable mCause;
public TipException(Object source, Object objectInError, Throwable cause, String message) {
super(message);
this.mSource = source;
this.mObjectInError = objectInError;
this.mCause = cause;
}
}
I need to write Junit test case for this simple exception class having some more methods. But Since I am new to Junit, Idk how to pass some object with exception here. Any help will be appreciated.