Class ImpexRunListener
java.lang.Object
org.junit.runner.notification.RunListener
de.hybris.platform.b2b.testframework.ImpexRunListener
public class ImpexRunListener
extends org.junit.runner.notification.RunListener
-
Nested Class Summary
Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener
org.junit.runner.notification.RunListener.ThreadSafe -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidImports given csv file from classpath using given encoding.protected voidimportStream(InputStream inputStream, String encoding, String resourceName) voidtestFinished(org.junit.runner.Description description) voidtestRunStarted(org.junit.runner.Description description) voidtestStarted(org.junit.runner.Description description) Methods inherited from class org.junit.runner.notification.RunListener
testAssumptionFailure, testFailure, testIgnored, testRunFinished, testSuiteFinished, testSuiteStarted
-
Constructor Details
-
ImpexRunListener
public ImpexRunListener()
-
-
Method Details
-
testStarted
- Overrides:
testStartedin classorg.junit.runner.notification.RunListener- Throws:
Exception
-
testRunStarted
- Overrides:
testRunStartedin classorg.junit.runner.notification.RunListener- Throws:
Exception
-
testFinished
- Overrides:
testFinishedin classorg.junit.runner.notification.RunListener- Throws:
Exception
-
importCsv
Imports given csv file from classpath using given encoding. Fails in case of import errors.- Parameters:
csvFile- name of file to import from classpathencoding- encoding to use- Throws:
ImpExException
-
importStream
protected void importStream(InputStream inputStream, String encoding, String resourceName) throws ImpExException - Throws:
ImpExException
-