Class 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
    • 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)  
      • Methods inherited from class org.junit.runner.notification.RunListener

        testAssumptionFailure, testFailure, testIgnored, testRunFinished
      • Methods inherited from class java.lang.Object

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

      • ImpexRunListener

        public ImpexRunListener()
    • Method Detail

      • testStarted

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

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

        public void testFinished​(org.junit.runner.Description description)
                          throws java.lang.Exception
        Overrides:
        testFinished in class org.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 classpath
        encoding - 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