1 | public class OptimisticInvalidatedTransactionalTestCase ↵ | | 1 | public class OptimisticInvalidatedTransactionalTestCase ↵
|
2 | extends AbstractTransactionalAccessTestCase {↵ | | 2 | extends AbstractTransactionalAccessTestCase {↵
|
| | | 3 | ↵
|
3 | /**↵ | | 4 | /**↵
|
4 | * Create a new TransactionalAccessTestCase.↵ | | 5 | * Create a new OptimisticInvalidatedTransactionalTestCase.↵
|
5 | * ↵ | | 6 | * ↵
|
6 | * @param name↵ | | 7 | * @param name↵
|
7 | */↵ | | 8 | */↵
|
8 | public OptimisticInvalidatedTransactionalTestCase(String name) {↵ | | 9 | public OptimisticInvalidatedTransactionalTestCase(String name) {↵
|
9 | super(name);↵ | | 10 | super(name);↵
|
10 | }↵ | | 11 | }↵
|
11 | ↵ | | 12 | ↵
|
12 | public static Test suite() throws Exception {↵ | | 13 | public static Test suite() throws Exception {↵
|
13 | TestSuite suite = CacheTestUtil.createFailureExpectedSuite(OptimisticInvalidatedTransactionalTestCase.class); ↵ | | 14 | TestSuite suite = CacheTestUtil.createFailureExpectedSuite(OptimisticInvalidatedTransactionalTestCase.class); ↵
|
14 | return getTestSetup(suite, "optimistic-entity");↵ | | 15 | return getTestSetup(suite, "optimistic-entity");↵
|
15 | }↵ | | 16 | }↵
|
16 | ↵ | | 17 | ↵
|
17 | @Override↵ | | 18 | @Override↵
|
18 | public void testCacheConfiguration() {↵ | | 19 | public void testCacheConfiguration() {↵
|
19 | assertTrue("Using Invalidation", isUsingInvalidation());↵ | | 20 | assertTrue("Using Invalidation", isUsingInvalidation());↵
|
20 | assertTrue("Using Optimistic locking", isUsingOptimisticLocking());↵ | | 21 | assertTrue("Using Optimistic locking", isUsingOptimisticLocking());↵
|
21 | assertTrue("Synchronous mode", isSynchronous());↵ | | 22 | assertTrue("Synchronous mode", isSynchronous());↵
|
22 | | | 23 |
|