01: package org.objectweb.celtix.bus.busimpl;
02:
03: import junit.framework.TestCase;
04:
05: import org.objectweb.celtix.Bus;
06:
07: public class CeltixBusInstrumentationTest extends TestCase {
08: CeltixBus bus;
09: CeltixBusInstrumentation cbi;
10:
11: public void setUp() throws Exception {
12: bus = (CeltixBus) Bus.init();
13: cbi = new CeltixBusInstrumentation(bus);
14: }
15:
16: public void tearDown() throws Exception {
17: bus.shutdown(true);
18: }
19:
20: public void testGetFactories() throws Exception {
21: String[] bindingFactories = cbi.getBindingFactories();
22: assertEquals("bindingFactories number is wrong ", 5,
23: bindingFactories.length);
24:
25: String[] transportFactories = cbi.getTransportFactories();
26: assertEquals("transportFactories number is wrong ", 6,
27: transportFactories.length);
28: }
29:
30: }
|