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.config.schema.setup.TestTVSConfigurationSetupManagerFactory;
08: import com.terracottatech.config.PersistenceMode;
09:
10: public class TransparentLinkedListTest extends TransparentTestBase
11: implements TestConfigurator {
12: private static final int NODE_COUNT = 3;
13: private static final int EXECUTION_COUNT = 3;
14: private static final int LOOP_ITERATION_COUNT = 3;
15:
16: public void doSetUp(TransparentTestIface t) throws Exception {
17: t.getTransparentAppConfig().setClientCount(NODE_COUNT)
18: .setApplicationInstancePerClientCount(EXECUTION_COUNT)
19: .setIntensity(LOOP_ITERATION_COUNT);
20: t.initializeTestRunner();
21: }
22:
23: protected void setupConfig(
24: TestTVSConfigurationSetupManagerFactory configFactory) {
25: configFactory.setGCEnabled(true);
26: configFactory
27: .setPersistenceMode(PersistenceMode.TEMPORARY_SWAP_ONLY);
28: }
29:
30: protected Class getApplicationClass() {
31: return TransparentLinkedListTestApp.class;
32: }
33:
34: protected boolean canRunCrash() {
35: return true;
36: }
37:
38: }
|