01: package org.objectweb.celtix.systest.common;
02:
03: import junit.framework.Test;
04:
05: import org.objectweb.celtix.Bus;
06: import org.objectweb.celtix.testutil.common.AbstractClientServerSetupBase;
07:
08: public abstract class ClientServerSetupBase extends
09: AbstractClientServerSetupBase {
10: protected String configFileName;
11: private Bus bus;
12:
13: public ClientServerSetupBase(Test arg0) {
14: super (arg0);
15: }
16:
17: public void setUp() throws Exception {
18: if (configFileName != null) {
19: System.setProperty("celtix.config.file", configFileName);
20: }
21: bus = Bus.init();
22: Bus.setCurrent(bus);
23: super .setUp();
24: }
25:
26: public void tearDown() throws Exception {
27: super .tearDown();
28: bus.shutdown(true);
29: Bus.setCurrent(null);
30: bus = null;
31: if (configFileName != null) {
32: System.clearProperty("celtix.config.file");
33: }
34: }
35:
36: }
|