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.tcverify;
06:
07: import com.tc.util.PortChooser;
08:
09: import java.util.ArrayList;
10: import java.util.Collection;
11: import java.util.logging.LogManager;
12:
13: public class DSOVerifierCDV424Test extends DSOVerifierTest {
14:
15: private final PortChooser pc = new PortChooser();
16:
17: protected String getMainClass() {
18: return getClass().getName();
19: }
20:
21: protected Collection<String> getExtraJvmArgs() {
22: Collection<String> rv = new ArrayList<String>();
23: rv.add("-Dcom.sun.management.jmxremote");
24: rv.add("-Dcom.sun.management.jmxremote.authenticate=false");
25: rv.add("-Dcom.sun.management.jmxremote.ssl=false");
26: rv.add("-Dcom.sun.management.jmxremote.port="
27: + pc.chooseRandomPort());
28: rv.add("-Djava.util.logging.manager="
29: + MyLogManager.class.getName());
30: return rv;
31: }
32:
33: public static class MyLogManager extends LogManager {
34: //
35: }
36:
37: public static void main(String[] args) {
38: Class<? extends LogManager> c = LogManager.getLogManager()
39: .getClass();
40: if (c != MyLogManager.class) {
41: throw new RuntimeException("Wrong log manager class: "
42: + c.getName());
43: }
44: DSOVerifier.main(args);
45: }
46:
47: }
|