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 TypeMethodDescriptionvoid
describeTo
(org.hamcrest.Description description) static TransactionAttributeMatcher
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
-
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 classorg.hamcrest.TypeSafeDiagnosingMatcher<org.springframework.transaction.interceptor.TransactionAttribute>
-
hasTxAttributes
public static TransactionAttributeMatcher hasTxAttributes(Method method, boolean expectedReadonly, int expectedIsolationLevel, int expectedPropagationBehaviour, Throwable... expectedNoRollbackFor)
-