Pattern Test that ensures that Throwable.printStackTrace
is not used in the code.
Example of test violation:
public class SomeClass
{
public void someMethod()
{
try
{
throw new SomeException("error");
}
catch(SomeException e)
{
//pattern test violation
e.printStackTrace();
}
}
}