1 17 18 package org.apache.avalon.fortress.impl.extensions.test; 19 20 import junit.framework.Assert; 21 import org.apache.excalibur.instrument.InstrumentManager; 22 import org.apache.excalibur.instrument.Instrumentable; 23 24 30 public class TestInstrumentManager extends Assert implements InstrumentManager 31 { 32 public void registerInstrumentable( Instrumentable instrumentable, String instrumentableName ) throws Exception 33 { 34 String name = instrumentable.getInstrumentableName(); 35 assertNotNull( name ); 36 37 name = "registered:" + instrumentableName; 38 instrumentable.setInstrumentableName( name ); 39 assertEquals( name, instrumentable.getInstrumentableName() ); 40 41 assertNotNull( instrumentable.getChildInstrumentables() ); 42 assertNotNull( instrumentable.getInstruments() ); 43 } 44 } 45 | Popular Tags |