KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > restart > system > SynchronousWriteObjectDataRestartTest


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

5 package com.tctest.restart.system;
6
7 import com.tctest.TestConfigurator;
8 import com.tctest.TransparentTestBase;
9 import com.tctest.TransparentTestIface;
10
11 import java.util.HashMap JavaDoc;
12 import java.util.Map JavaDoc;
13
14 public class SynchronousWriteObjectDataRestartTest extends TransparentTestBase implements TestConfigurator {
15
16   private int clientCount = 2;
17
18   protected Class JavaDoc getApplicationClass() {
19     return ObjectDataRestartTestApp.class;
20   }
21
22   protected Map JavaDoc getOptionalAttributes() {
23     Map JavaDoc attributes = new HashMap JavaDoc();
24     attributes.put(ObjectDataRestartTestApp.SYNCHRONOUS_WRITE, "true");
25     return attributes;
26   }
27
28   public void doSetUp(TransparentTestIface t) throws Exception JavaDoc {
29     t.getTransparentAppConfig().setClientCount(clientCount).setIntensity(1);
30     t.initializeTestRunner();
31   }
32
33   protected boolean canRunCrash() {
34     return true;
35   }
36
37   protected boolean canRunRestart() {
38     return true;
39   }
40
41 }
42
Popular Tags