public void testContentLengthWithException() throws IOException
{
try
{
AggregatingResourceLoader loader =
new AggregatingResourceLoader("test.xml",
new String[]
{
"test-1.xml",
"test-exception.xml",
"test-2.xml"
},
new ThrowingResourceLoader());
loader.setSeparator("\n");
doTestContentLength(loader.getResource("test.xml"));
//always log an error here.
assertTrue("Expected IOException was not thrown.", false);
}
catch (IOException e)
{