use of org.apereo.cas.authentication.AuthenticationBuilder in project cas by apereo.
the class SamlAuthenticationMetaDataPopulatorTests method verifyAuthenticationTypeNotFound.
@Test
public void verifyAuthenticationTypeNotFound() {
final CustomCredential credentials = new CustomCredential();
final AuthenticationBuilder builder = CoreAuthenticationTestUtils.getAuthenticationBuilder();
this.populator.populateAttributes(builder, AuthenticationTransaction.of(credentials));
final Authentication auth = builder.build();
assertNull(auth.getAttributes().get(SamlAuthenticationMetaDataPopulator.ATTRIBUTE_AUTHENTICATION_METHOD));
}
Aggregations