Package step.core.plans.runner
Class PlanRunnerResultAssert
- java.lang.Object
-
- step.core.plans.runner.PlanRunnerResultAssert
-
public class PlanRunnerResultAssert extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PlanRunnerResultAssert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertEquals(java.io.File expectedFile, java.io.File actualFile)static voidassertEquals(java.io.File expectedReportTreeFile, PlanRunnerResult actualResult)static voidassertEquals(java.lang.Class<?> clazz, java.lang.String expectedResourceName, java.io.File actualFile, java.lang.String... ignoredPatterns)Compare 2 resourcesstatic voidassertEquals(java.lang.Class<?> clazz, java.lang.String resourceName, PlanRunnerResult actualResult)static voidassertEquals(java.lang.String expectedReportTree, PlanRunnerResult actualResult)protected static java.lang.StringnormalizeEndOfLines(java.lang.String expectedReportTree)static java.lang.StringreadResource(java.io.File resource)static java.lang.StringreadResource(java.lang.Class<?> clazz, java.lang.String resourceName)static java.lang.StringreadStream(java.io.InputStream is)protected static java.lang.StringremoveIgnoredPatterns(java.lang.String text, java.lang.String... ignoredPatterns)
-
-
-
Method Detail
-
assertEquals
public static void assertEquals(java.io.File expectedFile, java.io.File actualFile) throws java.io.IOException- Throws:
java.io.IOException
-
assertEquals
public static void assertEquals(java.lang.Class<?> clazz, java.lang.String expectedResourceName, java.io.File actualFile, java.lang.String... ignoredPatterns) throws java.io.IOExceptionCompare 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:
java.io.IOException
-
removeIgnoredPatterns
protected static java.lang.String removeIgnoredPatterns(java.lang.String text, java.lang.String... ignoredPatterns)
-
assertEquals
public static void assertEquals(java.lang.String expectedReportTree, PlanRunnerResult actualResult) throws java.io.IOException- Throws:
java.io.IOException
-
normalizeEndOfLines
protected static java.lang.String normalizeEndOfLines(java.lang.String expectedReportTree)
-
assertEquals
public static void assertEquals(java.io.File expectedReportTreeFile, PlanRunnerResult actualResult) throws java.io.IOException- Throws:
java.io.IOException
-
assertEquals
public static void assertEquals(java.lang.Class<?> clazz, java.lang.String resourceName, PlanRunnerResult actualResult) throws java.io.IOException- Throws:
java.io.IOException
-
readResource
public static java.lang.String readResource(java.lang.Class<?> clazz, java.lang.String resourceName)
-
readResource
public static java.lang.String readResource(java.io.File resource) throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.FileNotFoundExceptionjava.io.IOException
-
readStream
public static java.lang.String readStream(java.io.InputStream is)
-
-