Cyberduck Mountain Duck CLI

Changeset 43657


Ignore:
Timestamp:
Jan 8, 2018 9:15:53 PM (4 months ago)
Author:
robot
Message:

Revert.

Location:
shelves/01.2018
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • shelves/01.2018

    • Property subgit:lock changed from commit:3addf9cbd3de5011ecbfc4e874a04616cb4fece0 timestamp:2018-01-08T21:15:51.347 to commit:77bfee8e08d6c7e8e5f281843a5bfd58995f9842 timestamp:2018-01-08T21:15:52.932
  • shelves/01.2018/dracoon/src/main/java/ch/cyberduck/core/sds/SDSSession.java

    r43655 r43657  
    3131import ch.cyberduck.core.UrlProvider;
    3232import ch.cyberduck.core.exception.BackgroundException;
    33 import ch.cyberduck.core.exception.LoginFailureException;
    3433import ch.cyberduck.core.exception.PartialLoginFailureException;
    3534import ch.cyberduck.core.features.*;
     
    184183            }
    185184            catch(ApiException e) {
    186                 throw new LoginFailureException(new SDSExceptionMappingService().map(e).getDetail(false), e);
     185                throw new SDSExceptionMappingService().map(e);
    187186            }
    188187        }
  • shelves/01.2018/dracoon/src/test/java/ch/cyberduck/core/sds/SDSSessionTest.java

    r43656 r43657  
    2020import ch.cyberduck.core.exception.LoginCanceledException;
    2121import ch.cyberduck.core.exception.LoginFailureException;
     22import ch.cyberduck.core.exception.NotfoundException;
    2223import ch.cyberduck.core.exception.ProxyLoginFailureException;
    2324import ch.cyberduck.core.proxy.Proxy;
     
    5758    }
    5859
    59     @Test(expected = LoginFailureException.class)
     60    @Test(expected = NotfoundException.class)
    6061    public void testLoginNotfound() throws Exception {
    6162        final Host host = new Host(new SDSProtocol(), "heroes.dracoon.team", new Credentials(
     
    6667        assertTrue(session.isConnected());
    6768        assertNotNull(session.getClient());
    68         try {
    69             session.login(new DisabledPasswordStore(), new DisabledLoginCallback(), new DisabledCancelCallback());
    70             fail();
    71         }
    72         catch(LoginFailureException e) {
    73             assertEquals("Login failed", e.getMessage());
    74             assertEquals("Please contact your web hosting service provider for assistance.", e.getDetail());
    75             throw e;
    76         }
     69        session.login(new DisabledPasswordStore(), new DisabledLoginCallback(), new DisabledCancelCallback());
     70        fail();
    7771    }
    7872
Note: See TracChangeset for help on using the changeset viewer.
swiss made software