@Test public void setTestAuthentication() throws Exception { testAuthentication.setAuthenticated(true); expectLastCall().once(); replayAll(); Authentication ambariAuthentication = new AmbariAuthentication(testAuthentication, DEFAULT_USER_ID); ambariAuthentication.setAuthenticated(true); verifyAll(); }
@Override public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException { authentication.setAuthenticated(isAuthenticated); }
AmbariAuthentication implements Authentication, UserIdAuthentication { @Override public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException { authentication.setAuthenticated(isAuthenticated); } }
AmbariAuthentication implements Authentication, UserIdAuthentication { @Override public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException { authentication.setAuthenticated(isAuthenticated); } AmbariAuthentication(Authentication authentication, Integer userId); }
AmbariAuthentication implements Authentication, UserIdAuthentication { @Override public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException { authentication.setAuthenticated(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 void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException { authentication.setAuthenticated(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();  }