public static Expectations getResponseTextExpectationsForLtpaCookie(String testAction, String username) {
        Expectations expectations = new Expectations();
        expectations.addExpectations(responseTextIncludesCookie(testAction, JwtFatConstants.LTPA_COOKIE_NAME));
        expectations.addExpectations(responseTextIncludesExpectedRemoteUser(testAction, username));
        expectations.addExpectations(responseTextIncludesWSPrincipal(testAction, username));
        expectations.addExpectations(responseTextIncludesExpectedAccessId(testAction, JwtFatConstants.BASIC_REALM, username));
        return expectations;
    }
public static Expectations getResponseTextExpectationsForLtpaCookie ( String testAction , String username ) { Expectations expectations = new Expectations ( ) ; expectations . addExpectations ( responseTextIncludesCookie ( testAction , JwtFatConstants . LTPA_COOKIE_NAME ) ) ; expectations . addExpectations ( responseTextIncludesExpectedRemoteUser ( testAction , username ) ) ; expectations . addExpectations ( responseTextIncludesWSPrincipal ( testAction , username ) ) ; expectations . addExpectations ( responseTextIncludesExpectedAccessId ( testAction , JwtFatConstants . BASIC_REALM , username ) ) ; return expectations ; }
Sets expectations that will check:
<ol>
<li>Response text includes an LTPA cookie
<li>Response text includes expected remote user
<li>Subject principal is a WSPrincipal with the expected user
<li>Subject public credentials include appropriate access ID with registry realm
</ol>