@Test(expected = LoginException.class) public void testNoLogin() throws Exception { RepositoryFacade facade = getFacade(mock(Repository.class)); facade.login(); }
@Override public Session login(Credentials credentials, String workspaceName) throws LoginException { throw new LoginException("Login not allowed through facade."); }
RepositoryFacade implements Repository { @Override public Session login(Credentials credentials, String workspaceName) throws LoginException { throw new LoginException("Login not allowed through facade."); } }
RepositoryFacade implements Repository { @Override public Session login(Credentials credentials, String workspaceName) throws LoginException { throw new LoginException("Login not allowed through facade."); } @SuppressWarnings("WeakerAccess")  RepositoryFacade(final @Nullable Repository delegate); }
RepositoryFacade implements Repository { @Override public Session login(Credentials credentials, String workspaceName) throws LoginException { throw new LoginException("Login not allowed through facade."); } @SuppressWarnings("WeakerAccess")  RepositoryFacade(final @Nullable Repository delegate); @Override String[] getDescriptorKeys(); @Override boolean isStandardDescriptor(String key); @Override boolean isSingleValueDescriptor(String key); @Override Value getDescriptorValue(String key); @Override Value[] getDescriptorValues(String key); @Override String getDescriptor(String key); @Override Session login(Credentials credentials, String workspaceName); @Override Session login(Credentials credentials); @Override Session login(String workspaceName); @Override Session login(); }
RepositoryFacade implements Repository { @Override public Session login(Credentials credentials, String workspaceName) throws LoginException { throw new LoginException("Login not allowed through facade."); } @SuppressWarnings("WeakerAccess")  RepositoryFacade(final @Nullable Repository delegate); @Override String[] getDescriptorKeys(); @Override boolean isStandardDescriptor(String key); @Override boolean isSingleValueDescriptor(String key); @Override Value getDescriptorValue(String key); @Override Value[] getDescriptorValues(String key); @Override String getDescriptor(String key); @Override Session login(Credentials credentials, String workspaceName); @Override Session login(Credentials credentials); @Override Session login(String workspaceName); @Override Session login();  }