com.wideplay.warp.persist
Class PersistenceMatchers
java.lang.Object
com.wideplay.warp.persist.PersistenceMatchers
public class PersistenceMatchers
- extends Object
Custom matchers for use with Warp Persist.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transactionalWithUnit
public static com.google.inject.matcher.Matcher<AnnotatedElement> transactionalWithUnit(Class<?> annotation)
- Matches on all
@
Transactional
annotations
that have the specified unit.
transactionalWithUnit(Sales.class) => @Transactional(unit=Sales.class)
- Parameters:
annotation
- the unit annotation
- Returns:
- a matcher that matches on
@Transactional(unit=annotation)