src/main/java/net/dontdrinkandroot/gitki/wicket/GitkiWebSession.java
/**
     * Manually sign in a specific user (useful for tests).
     *
     * @param user The user to sign in.
     */
Manually sign in a specific user (useful for tests).
@param user The user to sign in.
Manually sign in a specific user ( useful for tests ) . @param user The user to sign in .
public void signIn(User user)
    {
        SecurityContextHolder.getContext()
                .setAuthentication(new UsernamePasswordAuthenticationToken(user, null, user.getAuthorities()));
        this.signIn(true);
    }
public void signIn ( User user ) { SecurityContextHolder . getContext ( ) . setAuthentication ( new UsernamePasswordAuthenticationToken ( user , null , user . getAuthorities ( ) ) ) ; this . signIn ( true ) ; }
Manually sign in a specific user (useful for tests).
Manually sign in a specific user ( useful for tests ) .