String buildxml = readFile("./build.xml"); assertEquals("File not loaded by Pool!",  buildxml, data);
final String file = System.getProperty("test.initscript"); final String url = "file: final String urlData = m_pool.fetchURL(url);  String fileData = readFile(file); assertEquals("File not loaded by Pool!",  fileData, urlData);
    public void testFetchURL() throws Exception {        File cwd = new File("");        String url = "file://" + cwd.getAbsolutePath() + "/build.xml";        String data = m_pool.fetchURL(url);        String buildxml = readFile("./build.xml");        assertEquals("File not loaded by Pool!",  buildxml, data);        try {            m_pool.fetchURL(null);            fail("Shouldn't accept null URL");        } catch(IllegalArgumentException e) {        }        try {            m_pool.fetchURL("");            fail("Shouldn't accept blank URL");        } catch(IllegalArgumentException e) {        }        try {            m_pool.fetchURL("snert://gribble.com/");            fail("Shouldn't accept an invalid URL");        } catch(IllegalArgumentException e) {        }    }