@Test public void testMapPathName() { final DefaultIOExceptionMappingService s = new DefaultIOExceptionMappingService(); assertEquals("Download n failed.", s.map("Download {0} failed", new SocketException("s"), new Path("/n", EnumSet.of(Path.Type.directory, Path.Type.volume))).getMessage()); assertEquals("Download failed n.", s.map("Download failed {0}", new SocketException("s"), new Path("/n", EnumSet.of(Path.Type.directory, Path.Type.volume))).getMessage()); assertEquals("Download failed (/n).", s.map("Download failed", new SocketException("s"), new Path("/n", EnumSet.of(Path.Type.directory, Path.Type.volume))).getMessage()); }
public BackgroundException map(final IOException failure, final Path directory) { return super.map("Connection failed", failure, directory); }
DefaultIOExceptionMappingService extends AbstractExceptionMappingService<IOException> { public BackgroundException map(final IOException failure, final Path directory) { return super.map("Connection failed", failure, directory); } }
DefaultIOExceptionMappingService extends AbstractExceptionMappingService<IOException> { public BackgroundException map(final IOException failure, final Path directory) { return super.map("Connection failed", failure, directory); }  }
DefaultIOExceptionMappingService extends AbstractExceptionMappingService<IOException> { public BackgroundException map(final IOException failure, final Path directory) { return super.map("Connection failed", failure, directory); }  BackgroundException map(final IOException failure, final Path directory); @Override BackgroundException map(final IOException failure); }
DefaultIOExceptionMappingService extends AbstractExceptionMappingService<IOException> { public BackgroundException map(final IOException failure, final Path directory) { return super.map("Connection failed", failure, directory); }  BackgroundException map(final IOException failure, final Path directory); @Override BackgroundException map(final IOException failure);  }