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 void
importCsv(java.lang.String csvFile, java.lang.String encoding)
Imports given csv file from classpath using given encoding.protected void
importStream(java.io.InputStream inputStream, java.lang.String encoding, java.lang.String resourceName)
void
testFinished(org.junit.runner.Description description)
void
testRunStarted(org.junit.runner.Description description)
void
testStarted(org.junit.runner.Description description)
-
-
-
Method Detail
-
testStarted
public void testStarted(org.junit.runner.Description description) throws java.lang.Exception
- Overrides:
testStarted
in classorg.junit.runner.notification.RunListener
- Throws:
java.lang.Exception
-
testRunStarted
public void testRunStarted(org.junit.runner.Description description) throws java.lang.Exception
- Overrides:
testRunStarted
in classorg.junit.runner.notification.RunListener
- Throws:
java.lang.Exception
-
testFinished
public void testFinished(org.junit.runner.Description description) throws java.lang.Exception
- Overrides:
testFinished
in classorg.junit.runner.notification.RunListener
- Throws:
java.lang.Exception
-
importCsv
protected void importCsv(java.lang.String csvFile, java.lang.String encoding) throws ImpExException
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(java.io.InputStream inputStream, java.lang.String encoding, java.lang.String resourceName) throws ImpExException
- Throws:
ImpExException
-
-