@Test public void loadJavaFromPackage() { Loader loader = LoaderHelper.getLoader("camel"); Diagram diagram = loader.load("com.github.rmannibucau.camel.route", FileType.JAVA).iterator().next(); assertEquals(6, diagram.getVertices().size()); assertEquals(5, diagram.getEdges().size()); }
@Override public List<Diagram> load(String input, FileType fileType) { return camelContextToDiagram(input, fileType); }
CamelLoader implements Loader { @Override public List<Diagram> load(String input, FileType fileType) { return camelContextToDiagram(input, fileType); } }
CamelLoader implements Loader { @Override public List<Diagram> load(String input, FileType fileType) { return camelContextToDiagram(input, fileType); }  }
CamelLoader implements Loader { @Override public List<Diagram> load(String input, FileType fileType) { return camelContextToDiagram(input, fileType); }  @Override List<Diagram> load(String input, FileType fileType); @Override String key(); }
CamelLoader implements Loader { @Override public List<Diagram> load(String input, FileType fileType) { return camelContextToDiagram(input, fileType); }  @Override List<Diagram> load(String input, FileType fileType); @Override String key();  }