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
-
-
Constructor Summary
Constructors Constructor Description ImpexRunListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidimportCsv(java.lang.String csvFile, java.lang.String encoding)Imports given csv file from classpath using given encoding.protected voidimportStream(java.io.InputStream inputStream, java.lang.String encoding, java.lang.String resourceName)voidtestFinished(org.junit.runner.Description description)voidtestRunStarted(org.junit.runner.Description description)voidtestStarted(org.junit.runner.Description description)
-
-
-
Method Detail
-
testStarted
public void testStarted(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testStartedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
testRunStarted
public void testRunStarted(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testRunStartedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
testFinished
public void testFinished(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testFinishedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
importCsv
protected void importCsv(java.lang.String csvFile, java.lang.String encoding) throws ImpExExceptionImports 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(java.io.InputStream inputStream, java.lang.String encoding, java.lang.String resourceName) throws ImpExException- Throws:
ImpExException
-
-