Package step.core.plans.runner
Class PlanRunnerResultAssert
- java.lang.Object
-
- step.core.plans.runner.PlanRunnerResultAssert
-
public class PlanRunnerResultAssert extends Object
-
-
Constructor Summary
Constructors Constructor Description PlanRunnerResultAssert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertEquals(File expectedFile, File actualFile)
static void
assertEquals(File expectedReportTreeFile, PlanRunnerResult actualResult)
static void
assertEquals(Class<?> clazz, String expectedResourceName, File actualFile, String... ignoredPatterns)
Compare 2 resourcesstatic void
assertEquals(Class<?> clazz, String resourceName, PlanRunnerResult actualResult)
static void
assertEquals(String expectedReportTree, PlanRunnerResult actualResult)
protected static String
normalizeEndOfLines(String expectedReportTree)
static String
readResource(File resource)
static String
readResource(Class<?> clazz, String resourceName)
static String
readStream(InputStream is)
protected static String
removeIgnoredPatterns(String text, String... ignoredPatterns)
-
-
-
Method Detail
-
assertEquals
public static void assertEquals(File expectedFile, File actualFile) throws IOException
- Throws:
IOException
-
assertEquals
public static void assertEquals(Class<?> clazz, String expectedResourceName, File actualFile, String... ignoredPatterns) throws IOException
Compare 2 resources- Parameters:
clazz
- the class loader of the expected resourceexpectedResourceName
- the name of the expected resourceactualFile
- the actual fileignoredPatterns
- the regexp patterns to be ignored during comparison- Throws:
IOException
-
removeIgnoredPatterns
protected static String removeIgnoredPatterns(String text, String... ignoredPatterns)
-
assertEquals
public static void assertEquals(String expectedReportTree, PlanRunnerResult actualResult) throws IOException
- Throws:
IOException
-
assertEquals
public static void assertEquals(File expectedReportTreeFile, PlanRunnerResult actualResult) throws IOException
- Throws:
IOException
-
assertEquals
public static void assertEquals(Class<?> clazz, String resourceName, PlanRunnerResult actualResult) throws IOException
- Throws:
IOException
-
readResource
public static String readResource(File resource) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
readStream
public static String readStream(InputStream is)
-
-