@Test public void testInitFileNotFound() { try { new TypescriptInputReader(dependencyGraph).read("not-existing-file.xml"); fail("IllegalArgumentException expected"); } catch(IllegalArgumentException e) { assertThat(e.getMessage()).startsWith("File not found: "); } }
public void read(String filename) { FileSystemUtil.assertFileOrResourceExists(filename); TypescriptProject bean = readFile(filename); mapInput(bean); }
TypescriptInputReader { public void read(String filename) { FileSystemUtil.assertFileOrResourceExists(filename); TypescriptProject bean = readFile(filename); mapInput(bean); } }
TypescriptInputReader { public void read(String filename) { FileSystemUtil.assertFileOrResourceExists(filename); TypescriptProject bean = readFile(filename); mapInput(bean); } TypescriptInputReader(DependencyGraph dependencyGraph); }
TypescriptInputReader { public void read(String filename) { FileSystemUtil.assertFileOrResourceExists(filename); TypescriptProject bean = readFile(filename); mapInput(bean); } TypescriptInputReader(DependencyGraph dependencyGraph); void read(String filename); }
TypescriptInputReader { public void read(String filename) { FileSystemUtil.assertFileOrResourceExists(filename); TypescriptProject bean = readFile(filename); mapInput(bean); } TypescriptInputReader(DependencyGraph dependencyGraph); void read(String filename); static final String ROOT_NODE_NAME; static final String PARENT_PROPERTY; }