@Test public void testGet_Closed() throws Exception { transporter.close(); try { transporter.get( new GetTask( URI.create( "file.txt" ) ) ); fail( "Expected error" ); } catch ( IllegalStateException e ) { assertEquals( Transporter.ERROR_OTHER, transporter.classify( e ) ); } }
public int classify( Throwable error ) { if ( error instanceof ResourceNotFoundException ) { return ERROR_NOT_FOUND; } return ERROR_OTHER; }
FileTransporter extends AbstractTransporter { public int classify( Throwable error ) { if ( error instanceof ResourceNotFoundException ) { return ERROR_NOT_FOUND; } return ERROR_OTHER; } }
FileTransporter extends AbstractTransporter { public int classify( Throwable error ) { if ( error instanceof ResourceNotFoundException ) { return ERROR_NOT_FOUND; } return ERROR_OTHER; } FileTransporter( RemoteRepository repository, Logger logger ); }
FileTransporter extends AbstractTransporter { public int classify( Throwable error ) { if ( error instanceof ResourceNotFoundException ) { return ERROR_NOT_FOUND; } return ERROR_OTHER; } FileTransporter( RemoteRepository repository, Logger logger ); int classify( Throwable error ); }
FileTransporter extends AbstractTransporter { public int classify( Throwable error ) { if ( error instanceof ResourceNotFoundException ) { return ERROR_NOT_FOUND; } return ERROR_OTHER; } FileTransporter( RemoteRepository repository, Logger logger ); int classify( Throwable error );  }