protected MorphlineContext create() { return new MorphlineContext(); }
protected MorphlineContext create() { return new MorphlineContext(); }
@Test @Ignore public void testHugeImportSpecs() { long start = System.currentTimeMillis(); List<String> importSpecs = Arrays.asList("com.**", "org.**", "net.*", getClass().getName()); for (Class clazz : new MorphlineContext().getTopLevelClasses(importSpecs, CommandBuilder.class)) { System.out.println("found " + clazz); } float secs = (System.currentTimeMillis() - start) / 1000.0f; System.out.println("secs=" + secs); }
@Test public void testImportSpecs() { List<String> importSpecs = Arrays.asList("org.kitesdk.**", "org.apache.solr.**", "net.*", getClass().getName()); for (Class clazz : new MorphlineContext().getTopLevelClasses(importSpecs, CommandBuilder.class)) { //System.out.println("found " + clazz); } MorphlineContext ctx = new MorphlineContext.Builder().build(); ctx.importCommandBuilders(importSpecs); ctx.importCommandBuilders(importSpecs); }
@Test public void testImportSpecsWithOnlyFQCNs() { List<String> importSpecs = Arrays.asList(getClass().getName()); for (Class clazz : new MorphlineContext().getTopLevelClasses(importSpecs, CommandBuilder.class)) { //System.out.println("found " + clazz); } MorphlineContext ctx = new MorphlineContext.Builder().build(); ctx.importCommandBuilders(importSpecs); ctx.importCommandBuilders(importSpecs); }