@Test public void loadXml() { Loader loader = LoaderHelper.getLoader("camel"); Diagram diagram = loader.load(new File(getClass().getResource("/route.xml").getFile()).getParent(), FileType.XML).iterator().next(); assertEquals(10, diagram.getVertices().size()); assertEquals(9, 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();  }