Class TransactionAttributeMatcher
java.lang.Object
org.hamcrest.BaseMatcher<org.springframework.transaction.interceptor.TransactionAttribute>
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 TypeMethodDescriptionvoiddescribeTo(org.hamcrest.Description description) static TransactionAttributeMatcherhasTxAttributes(Method method, boolean expectedReadonly, int expectedIsolationLevel, int expectedPropagationBehaviour, Throwable... expectedNoRollbackFor) protected booleanmatchesSafely(org.springframework.transaction.interceptor.TransactionAttribute txAttr, org.hamcrest.Description mismatchDescription) Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
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:
matchesSafelyin classorg.hamcrest.TypeSafeDiagnosingMatcher<org.springframework.transaction.interceptor.TransactionAttribute>
-
hasTxAttributes
public static TransactionAttributeMatcher hasTxAttributes(Method method, boolean expectedReadonly, int expectedIsolationLevel, int expectedPropagationBehaviour, Throwable... expectedNoRollbackFor)
-