Testing a servlet static method not allowed?
Posted
by simpatico
on Stack Overflow
See other posts from Stack Overflow
or by simpatico
Published on 2010-06-06T11:56:11Z
Indexed on
2010/06/06
12:02 UTC
Read the original article
Hit count: 296
When I try from within JUnit I enter:
public InvocationTargetException(Throwable target) {
super((Throwable)null); // Disallow initCause
this.target = target;
}
I know that I could put that code in an outer class and have servlet call it.
© Stack Overflow or respective owner