01: /*
02: * All content copyright (c) 2003-2006 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.test.activepassive.ActivePassiveCrashMode;
08: import com.tc.test.activepassive.ActivePassivePersistenceMode;
09: import com.tc.test.activepassive.ActivePassiveSharedDataMode;
10: import com.tc.test.activepassive.ActivePassiveTestSetupManager;
11:
12: public class LinkedBlockingQueueActivePassiveTest extends
13: TransparentTestBase {
14:
15: private static final int NODE_COUNT = 4;
16:
17: public LinkedBlockingQueueActivePassiveTest() {
18: //disableAllUntil("2007-06-30");
19: }
20:
21: public void doSetUp(TransparentTestIface t) throws Exception {
22: t.getTransparentAppConfig().setClientCount(NODE_COUNT);
23: t.initializeTestRunner();
24: }
25:
26: protected Class getApplicationClass() {
27: return LinkedBlockingQueueCrashTestApp.class;
28: }
29:
30: protected boolean canRunActivePassive() {
31: return true;
32: }
33:
34: public void setupActivePassiveTest(
35: ActivePassiveTestSetupManager setupManager) {
36: setupManager.setServerCount(2);
37: setupManager
38: .setServerCrashMode(ActivePassiveCrashMode.CONTINUOUS_ACTIVE_CRASH);
39: setupManager.setServerCrashWaitTimeInSec(30);
40: setupManager
41: .setServerShareDataMode(ActivePassiveSharedDataMode.NETWORK);
42: setupManager
43: .setServerPersistenceMode(ActivePassivePersistenceMode.TEMPORARY_SWAP_ONLY);
44: }
45:
46: }
|