1 package org.objectweb.celtix.bus.busimpl; 2 3 import junit.framework.TestCase; 4 5 import org.objectweb.celtix.Bus; 6 7 public class CeltixBusInstrumentationTest extends TestCase { 8 CeltixBus bus; 9 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, bindingFactories.length); 23 24 String [] transportFactories = cbi.getTransportFactories(); 25 assertEquals("transportFactories number is wrong ", 6, transportFactories.length); 26 } 27 28 29 } 30 | Popular Tags |