Class PageSource

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class PageSource
    extends TestFailureAwareRule
    Saves the page source into a file in case of a test error
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void onError​(org.junit.runner.Description description, java.lang.Throwable testFailure)
      Called if the test has thrown an error.
      • Methods inherited from class java.lang.Object

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

      • onError

        protected void onError​(org.junit.runner.Description description,
                               java.lang.Throwable testFailure)
                        throws java.lang.Throwable
        Description copied from class: TestFailureAwareRule
        Called if the test has thrown an error. By default it does nothing.
        Overrides:
        onError in class TestFailureAwareRule
        Parameters:
        description - junit test description object
        testFailure - any error from the test
        Throws:
        java.lang.Throwable - this will be added to testFailure as suppressed exception. See Throwable.addSuppressed(Throwable)