[jboss-dev-forums] [Design of OSGi Integration] - Re: Logging and Exception Handling

johnbailey do-not-reply at jboss.com
Fri Feb 29 11:12:09 EST 2008


"adrian at jboss.org" wrote : 
  | Ok, it is Ales's fault then. :-)
  | Maybe we don't have an up-to-date VFS release?
  | 

There is a method in the org.jboss.test.bundle.helper.BundleEntryHelperTestCase class if you want to see what is happening.  


  |    public void testGetEntryPathsMissingDirPath() throws Exception
  |    {
  |       try
  |       {
  |          BundleEntryHelper.getEntryPaths(deploymentUnit, "mising/path");
  |          fail("Should have throw FileNotFoundException");
  |       }
  |       catch (RuntimeException expectedException)
  |       {
  |          assertTrue(expectedException.getCause() instanceof FileNotFoundException);
  |       }
  |    }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133276#4133276

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133276



More information about the jboss-dev-forums mailing list