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