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