01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tctest;
06:
07: import com.tc.config.schema.setup.TestTVSConfigurationSetupManagerFactory;
08: import com.terracottatech.config.PersistenceMode;
09:
10: /**
11: * This test was written specifically to expose a dead lock in sleepcat in persistence map
12: */
13: public class MapClearDeadLocksSleepycatTest extends TransparentTestBase {
14:
15: private static final int NODE_COUNT = 2;
16: private static final int THREADS_COUNT = 2;
17:
18: public void doSetUp(TransparentTestIface t) throws Exception {
19: t.getTransparentAppConfig().setClientCount(NODE_COUNT)
20: .setApplicationInstancePerClientCount(THREADS_COUNT)
21: .setIntensity(1);
22: t.initializeTestRunner();
23: }
24:
25: protected Class getApplicationClass() {
26: return MapClearDeadLocksSleepycatTestApp.class;
27: }
28:
29: protected void setupConfig(
30: TestTVSConfigurationSetupManagerFactory configFactory) {
31: configFactory
32: .setPersistenceMode(PersistenceMode.PERMANENT_STORE);
33: }
34:
35: }
|