Class TransactionAttributeMatcher

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<org.springframework.transaction.interceptor.TransactionAttribute>
com.atlassian.confluence.spring.transaction.TransactionAttributeMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<org.springframework.transaction.interceptor.TransactionAttribute>, org.hamcrest.SelfDescribing

public class TransactionAttributeMatcher extends org.hamcrest.TypeSafeDiagnosingMatcher<org.springframework.transaction.interceptor.TransactionAttribute>
A hamcrest Matcher for Spring TransactionAttribute objects.
Since:
5.6
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeTo(org.hamcrest.Description description)
     
    hasTxAttributes(Method method, boolean expectedReadonly, int expectedIsolationLevel, int expectedPropagationBehaviour, Throwable... expectedNoRollbackFor)
     
    protected boolean
    matchesSafely(org.springframework.transaction.interceptor.TransactionAttribute txAttr, org.hamcrest.Description mismatchDescription)
     

    Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher

    describeMismatch, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • matchesSafely

      protected boolean matchesSafely(org.springframework.transaction.interceptor.TransactionAttribute txAttr, org.hamcrest.Description mismatchDescription)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<org.springframework.transaction.interceptor.TransactionAttribute>
    • hasTxAttributes

      public static TransactionAttributeMatcher hasTxAttributes(Method method, boolean expectedReadonly, int expectedIsolationLevel, int expectedPropagationBehaviour, Throwable... expectedNoRollbackFor)