Class RunInTransaction

java.lang.Object
com.onenetwork.platform.tools.test.junit4.rule.RunInTransaction
All Implemented Interfaces:
org.junit.rules.TestRule

public class RunInTransaction
extends java.lang.Object
implements org.junit.rules.TestRule
Test rule that executes the test inside a transaction.
This rule is designed to be used for tests that execute inside a running container (i.e. "Server Tests"), where a transaction makes sense.
Since:
20.0
  • Constructor Summary

    Constructors 
    Constructor Description
    RunInTransaction()  
  • Method Summary

    Modifier and Type Method Description
    org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base, org.junit.runner.Description description)  

    Methods inherited from class java.lang.Object

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

  • 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
      See Also:
      TestRule.apply(org.junit.runners.model.Statement, org.junit.runner.Description)