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 java.util.HashMap;
08: import java.util.Map;
09:
10: public class ClientMemoryReaperSynchronousWriteTest extends
11: TransparentTestBase implements TestConfigurator {
12:
13: private static final int NODE_COUNT = 2;
14: private static final int THREADS_COUNT = 2;
15:
16: protected Class getApplicationClass() {
17: return ClientMemoryReaperTestApp.class;
18: }
19:
20: public void doSetUp(TransparentTestIface t) throws Exception {
21: t.getTransparentAppConfig().setClientCount(NODE_COUNT)
22: .setApplicationInstancePerClientCount(THREADS_COUNT);
23: t.initializeTestRunner();
24: }
25:
26: protected Map getOptionalAttributes() {
27: Map attributes = new HashMap();
28: attributes.put(ClientMemoryReaperTestApp.SYNCHRONOUS_WRITE,
29: "true");
30: return attributes;
31: }
32: }
|