1 15 package hivemind.test.impl; 16 17 import org.apache.hivemind.impl.RegistryAssemblyImpl; 18 import org.apache.hivemind.test.HiveMindTestCase; 19 20 25 public class TestRegistryAssemblyImpl extends HiveMindTestCase 26 { 27 private static class TestRunnable implements Runnable 28 { 29 boolean didRun = false; 30 31 public void run() 32 { 33 didRun = true; 34 } 35 } 36 37 public void testAddPostProcessor() 38 { 39 RegistryAssemblyImpl ra = new RegistryAssemblyImpl(); 40 41 TestRunnable r = new TestRunnable(); 42 43 assertEquals(false, r.didRun); 44 45 ra.addPostProcessor(r); 46 47 ra.performPostProcessing(); 48 49 assertEquals(true, r.didRun); 50 } 51 52 } | Popular Tags |