@Test public void load_A$InputStream() throws Exception { ExtConfigurationLoader loader = new ExtConfigurationLoader(); InputStream inputStream = IOUtil.getResourceAsStream("junithelper-extension.xml"); ExtConfiguration actual = loader.load(inputStream); assertThat(actual.extArgs.size(), is(equalTo(4))); assertThat(actual.extArgs.get(0).canonicalClassName, is(equalTo("java.util.Calendar"))); assertThat(actual.extArgs.get(0).importList.size(), is(equalTo(3))); assertThat(actual.extArgs.get(0).patterns.size(), is(equalTo(3))); assertThat(actual.extReturns.size(), is(equalTo(1))); assertThat(actual.extReturns.get(0).asserts.size(), is(equalTo(2))); }
public ExtConfiguration load(String filepath) throws Exception { Assertion.on("filepath").mustNotBeNull(filepath); return load(new FileInputStream(new File(filepath))); }
ExtConfigurationLoader { public ExtConfiguration load(String filepath) throws Exception { Assertion.on("filepath").mustNotBeNull(filepath); return load(new FileInputStream(new File(filepath))); } }
ExtConfigurationLoader { public ExtConfiguration load(String filepath) throws Exception { Assertion.on("filepath").mustNotBeNull(filepath); return load(new FileInputStream(new File(filepath))); }  }
ExtConfigurationLoader { public ExtConfiguration load(String filepath) throws Exception { Assertion.on("filepath").mustNotBeNull(filepath); return load(new FileInputStream(new File(filepath))); }  ExtConfiguration load(String filepath); ExtConfiguration load(InputStream inputStream); }
ExtConfigurationLoader { public ExtConfiguration load(String filepath) throws Exception { Assertion.on("filepath").mustNotBeNull(filepath); return load(new FileInputStream(new File(filepath))); }  ExtConfiguration load(String filepath); ExtConfiguration load(InputStream inputStream);  }