224225226227228229230231
ioc.get(Animal.class, "f3"); } @Test public void test_load_from_dir() throws ObjectLoadException { IocLoader loader = new JsonLoader("org/nutz/ioc/json/"); assertTrue(loader.getName().length > 0); }
230231232233234235236237
assertTrue(loader.getName().length > 0); } @Test public void test_load_from_reader() throws ObjectLoadException { IocLoader loader = new JsonLoader(Streams.fileInr("org/nutz/ioc/json/main.js")); assertTrue(loader.getName().length > 0); }