@Test public void testIsAuthenticated() throws Exception { expect(testAuthentication.isAuthenticated()).andReturn(false).once(); replayAll(); Authentication ambariAuthentication = new AmbariAuthentication(testAuthentication, DEFAULT_USER_ID); ambariAuthentication.isAuthenticated(); verifyAll(); }
@Override public boolean isAuthenticated() { return authentication.isAuthenticated(); }
AmbariAuthentication implements Authentication, UserIdAuthentication { @Override public boolean isAuthenticated() { return authentication.isAuthenticated(); } }
AmbariAuthentication implements Authentication, UserIdAuthentication { @Override public boolean isAuthenticated() { return authentication.isAuthenticated(); } AmbariAuthentication(Authentication authentication, Integer userId); }
AmbariAuthentication implements Authentication, UserIdAuthentication { @Override public boolean isAuthenticated() { return authentication.isAuthenticated(); } AmbariAuthentication(Authentication authentication, Integer userId); @Override Collection<? extends GrantedAuthority> getAuthorities(); @Override Object getCredentials(); @Override Object getDetails(); @Override Object getPrincipal(); @Override boolean isAuthenticated(); @Override void setAuthenticated(boolean isAuthenticated); @Override String getName(); @Override boolean equals(Object o); @Override int hashCode(); @Override Integer getUserId(); }
AmbariAuthentication implements Authentication, UserIdAuthentication { @Override public boolean isAuthenticated() { return authentication.isAuthenticated(); } AmbariAuthentication(Authentication authentication, Integer userId); @Override Collection<? extends GrantedAuthority> getAuthorities(); @Override Object getCredentials(); @Override Object getDetails(); @Override Object getPrincipal(); @Override boolean isAuthenticated(); @Override void setAuthenticated(boolean isAuthenticated); @Override String getName(); @Override boolean equals(Object o); @Override int hashCode(); @Override Integer getUserId();  }