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