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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    importCsv(String csvFile, String encoding)
    Imports given csv file from classpath using given encoding.
    protected void
    importStream(InputStream inputStream, String encoding, String resourceName)
     
    void
    testFinished(org.junit.runner.Description description)
     
    void
    testRunStarted(org.junit.runner.Description description)
     
    void
    testStarted(org.junit.runner.Description description)
     

    Methods inherited from class org.junit.runner.notification.RunListener

    testAssumptionFailure, testFailure, testIgnored, testRunFinished, testSuiteFinished, testSuiteStarted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImpexRunListener

      public ImpexRunListener()
  • Method Details

    • testStarted

      public void testStarted(org.junit.runner.Description description) throws Exception
      Overrides:
      testStarted in class org.junit.runner.notification.RunListener
      Throws:
      Exception
    • testRunStarted

      public void testRunStarted(org.junit.runner.Description description) throws Exception
      Overrides:
      testRunStarted in class org.junit.runner.notification.RunListener
      Throws:
      Exception
    • testFinished

      public void testFinished(org.junit.runner.Description description) throws Exception
      Overrides:
      testFinished in class org.junit.runner.notification.RunListener
      Throws:
      Exception
    • importCsv

      protected void importCsv(String csvFile, 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 classpath
      encoding - encoding to use
      Throws:
      ImpExException
    • importStream

      protected void importStream(InputStream inputStream, String encoding, String resourceName) throws ImpExException
      Throws:
      ImpExException