Class ExternalResource

java.lang.Object
org.neo4j.test.rule.ExternalResource
All Implemented Interfaces:
org.junit.rules.TestRule
Direct Known Subclasses:
DbmsRule

public abstract class ExternalResource extends Object implements org.junit.rules.TestRule
A better version of ExternalResource that properly handles exceptions in after().
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Override to tear down your specific external resource.
    org.junit.runners.model.Statement
    apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
     
    protected void
    Override to set up your specific external resource.

    Methods inherited from class java.lang.Object

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

    • ExternalResource

      public ExternalResource()
  • Method Details

    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
      Specified by:
      apply in interface org.junit.rules.TestRule
    • before

      protected void before()
      Override to set up your specific external resource.
    • after

      protected void after()
      Override to tear down your specific external resource.