Skip to content

Commit

Permalink
fixed test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
SavvasMisaghMoayyed committed Dec 16, 2015
1 parent 1f5fabe commit b66079b
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* @author Scott Battaglia
* @since 3.0.0.5
* @since 3.0.0
*/
public interface TicketState {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
* @see javax.security.auth.callback.CallbackHandler
* @see javax.security.auth.callback.PasswordCallback
* @see javax.security.auth.callback.NameCallback
* @since 3.0.0.5
* @since 3.0.0
*/
@Component("jaasAuthenticationHandler")
public class JaasAuthenticationHandler extends AbstractUsernamePasswordAuthenticationHandler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* clients from consuming resources by doing constant redirects.
*
* @author Scott Battaglia
* @since 3.0.0.5
* @since 3.0.0
*/
@Component("throttledUseAndTimeoutExpirationPolicy")
public final class ThrottledUseAndTimeoutExpirationPolicy extends AbstractCasExpirationPolicy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@ protected void onSuccess(final RequestContext context,
// default implementation does nothing
}

public PrincipalFactory getPrincipalFactory() {
return principalFactory;
}

public AuthenticationObjectsRepository getAuthenticationObjectsRepository() {
return authenticationObjectsRepository;
}

/**
* Abstract method to implement to construct the credential from the
* request object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* true.
*
* @author Andrew Petro
* @since 3.0.0.5
* @since 3.0.0
*/
@Component("principalBearingCredentialsAuthenticationHandler")
public final class PrincipalBearingCredentialsAuthenticationHandler extends AbstractAuthenticationHandler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* credentials.
*
* @author Andrew Petro
* @since 3.0.0.5
* @since 3.0.0
*/
public final class PrincipalBearingCredential extends AbstractCredential {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* already bear the ready-to-go Principal.
*
* @author Andrew Petro
* @since 3.0.0.5
* @since 3.0.0
*/
@Component("trustedPrincipalResolver")
public final class PrincipalBearingPrincipalResolver extends PersonDirectoryPrincipalResolver {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* could not find any credentials.
*
* @author Scott Battaglia
* @since 3.0.0.5
* @since 3.0.0
*/
@Component("principalFromRemoteUserAction")
public final class PrincipalFromRequestRemoteUserNonInteractiveCredentialsAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/**
* @author Andrew Petro
* @since 3.0.0.5
* @since 3.0.0
*/
public final class PrincipalBearingCredentialsAuthenticationHandlerTests {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/**
* @author Scott Battaglia
* @since 3.0.0.5
* @since 3.0.0
*/
public class PrincipalBearingCredentialsTests {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/**
* @author Scott Battaglia
* @since 3.0.0.5
* @since 3.0.0
*/
public class PrincipalBearingCredentialsToPrincipalResolverTests {
private PrincipalBearingPrincipalResolver resolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/**
* @author Scott Battaglia
* @since 3.0.0.5
* @since 3.0.0
*
*/
public class PrincipalFromRequestRemoteUserNonInteractiveCredentialsActionTests extends AbstractCentralAuthenticationServiceTests {
Expand All @@ -46,6 +46,8 @@ public void setUp() throws Exception {
getCentralAuthenticationService();

this.action.setCentralAuthenticationService(centralAuthenticationService);
this.action.getAuthenticationObjectsRepository().getAuthenticationTransactionManager()
.setAuthenticationManager(authenticationManager);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public void setUp() throws Exception {
final AbstractCentralAuthenticationService centralAuthenticationService = (AbstractCentralAuthenticationService)
getCentralAuthenticationService();
this.action.setCentralAuthenticationService(centralAuthenticationService);
this.action.getAuthenticationObjectsRepository().getAuthenticationTransactionManager()
.setAuthenticationManager(authenticationManager);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/**
*
* @author Scott Battaglia
* @since 3.0.0.5
* @since 3.0.0
*
*/
public class InitialFlowSetupActionTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* (i.e. a Quartz Job) and runs independent of the threshold of the parent.
*
* @author Scott Battaglia
* @since 3.0.0.5
* @since 3.0.0
*/
@Component("abstractInMemoryThrottledSubmissionHandlerInterceptorAdapter")
public abstract class AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter
Expand Down

0 comments on commit b66079b

Please sign in to comment.