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 com.tc.logging.TCLogger;
08: import com.tc.logging.TCLogging;
09: import com.tc.simulator.app.ApplicationConfig;
10: import com.tc.simulator.listener.ListenerProvider;
11: import com.tctest.runner.AbstractErrorCatchingTransparentApp;
12:
13: public class LogOutputTestApp extends
14: AbstractErrorCatchingTransparentApp {
15: private static final TCLogger logger = TCLogging
16: .getTestingLogger(LogOutputTestApp.class);
17: private static final String message = "LogOutputTest: abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz";
18: private static final int LOOP_COUNT = 1000000;
19:
20: public LogOutputTestApp(String appId, ApplicationConfig config,
21: ListenerProvider listenerProvider) {
22: super (appId, config, listenerProvider);
23: }
24:
25: protected void runTest() throws Throwable {
26: for (int i = 0; i < LOOP_COUNT; i++) {
27: logger.info(message);
28: // System.out.println(message);
29: }
30: }
31:
32: }
|