KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > ConcurrentLockSystemTest


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest;
5
6 import com.tc.config.schema.SettableConfigItem;
7 import com.tc.config.schema.setup.TestTVSConfigurationSetupManagerFactory;
8
9 public class ConcurrentLockSystemTest extends TransparentTestBase {
10
11   private final int globalParticipantCount = 5;
12   private final int intensity = 1;
13
14   public ConcurrentLockSystemTest() {
15     super();
16   }
17
18   protected Class JavaDoc getApplicationClass() {
19     return ConcurrentLockSystemTestApp.class;
20   }
21
22   public void doSetUp(TransparentTestIface t) throws Exception JavaDoc {
23     TestTVSConfigurationSetupManagerFactory factory = (TestTVSConfigurationSetupManagerFactory) t.getConfigFactory();
24
25     ((SettableConfigItem) factory.l2DSOConfig().garbageCollectionVerbose()).setValue(true);
26     ((SettableConfigItem) factory.l2DSOConfig().garbageCollectionInterval()).setValue(10);
27
28     t.getTransparentAppConfig().setClientCount(globalParticipantCount).setIntensity(intensity);
29     t.initializeTestRunner();
30   }
31
32   protected boolean canRunCrash() {
33     return true;
34   }
35
36 }
37
Popular Tags