throw (TransferFailedException) new TransferFailedException( "" );
}
};
MockControl control = MockControl.createControl( TransferListener.class );
TransferListener listener = (TransferListener) control.getMock();
listener.transferInitiated( null );
control.setMatcher( MockControl.ALWAYS_MATCHER );
TransferEvent transferEvent =
new TransferEvent( wagon, new Resource( "resource" ), new TransferFailedException( "" ),
TransferEvent.REQUEST_PUT );
listener.transferError( transferEvent );
control.replay();
wagon.connect( repository );
wagon.addTransferListener( listener );
try