public class RegressionExceptionHelper extends Object
| Constructor and Description |
|---|
RegressionExceptionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addExceptionAssertionComments(RegressionTestChromosome regressionTest,
Map<Integer,Throwable> originalExceptionMapping,
Map<Integer,Throwable> regressionExceptionMapping)
Add regression-diff comments for exception messages
|
static int |
compareExceptionDiffs(Map<Integer,Throwable> originalExceptionMapping,
Map<Integer,Throwable> regressionExceptionMapping)
Calculate the number of different exceptions, given two sets of exceptions.
|
static String |
getExceptionSignature(Throwable throwable,
String CUT)
Get signature based on the root cause from the stack trace
(uses: location of the error triggering line from CUT)
|
static String |
simpleExceptionName(RegressionTestChromosome test,
Integer statementPos,
Throwable ex)
Get a simple (and unique looking) exception name (exType or exThrowingMethodCall:exType)
|
public static String simpleExceptionName(RegressionTestChromosome test, Integer statementPos, Throwable ex)
public static String getExceptionSignature(Throwable throwable, String CUT)
CUT - the class to expect the exception to be thrown frompublic static int compareExceptionDiffs(Map<Integer,Throwable> originalExceptionMapping, Map<Integer,Throwable> regressionExceptionMapping)
Copyright © 2010–2017 EvoSuite. All rights reserved.