use of pl.edu.icm.unity.engine.api.RealmsManagement in project unity by unity-idm.
the class MockGroovyBindingProvider method getBinding.
public static Binding getBinding(PersistableEvent event) {
MessageSource unityMessageSource = mock(MessageSource.class, withSettings().verboseLogging());
UnityServerConfiguration config = mock(UnityServerConfiguration.class, withSettings().verboseLogging());
BulkProcessingManagement bulkProcessingManagement = mock(BulkProcessingManagement.class, withSettings().verboseLogging());
PreferencesManagement preferencesManagement = mock(PreferencesManagement.class, withSettings().verboseLogging());
UserImportManagement userImportManagement = mock(UserImportManagement.class, withSettings().verboseLogging());
AttributeTypeSupport attributeTypeSupport = mock(AttributeTypeSupport.class, withSettings().verboseLogging());
IdentityTypeSupport identityTypeSupport = mock(IdentityTypeSupport.class, withSettings().verboseLogging());
IdentityTypesManagement identityTypesManagement = mock(IdentityTypesManagement.class, withSettings().verboseLogging());
AttributeClassManagement attributeClassManagement = mock(AttributeClassManagement.class, withSettings().verboseLogging());
AttributesManagement attributesManagement = mock(AttributesManagement.class, withSettings().verboseLogging());
AttributeTypeManagement attributeTypeManagement = mock(AttributeTypeManagement.class, withSettings().verboseLogging());
AuthenticatorManagement authenticatorManagement = mock(AuthenticatorManagement.class, withSettings().verboseLogging());
CredentialManagement credentialManagement = mock(CredentialManagement.class, withSettings().verboseLogging());
CredentialRequirementManagement credentialRequirementManagement = mock(CredentialRequirementManagement.class, withSettings().verboseLogging());
EndpointManagement endpointManagement = mock(EndpointManagement.class, withSettings().verboseLogging());
EnquiryManagement enquiryManagement = mock(EnquiryManagement.class, withSettings().verboseLogging());
EntityCredentialManagement entityCredentialManagement = mock(EntityCredentialManagement.class, withSettings().verboseLogging());
EntityManagement entityManagement = mock(EntityManagement.class, withSettings().verboseLogging());
GroupsManagement groupsManagement = mock(GroupsManagement.class, withSettings().verboseLogging());
InvitationManagement invitationManagement = mock(InvitationManagement.class, withSettings().verboseLogging());
MessageTemplateManagement messageTemplateManagement = mock(MessageTemplateManagement.class, withSettings().verboseLogging());
NotificationsManagement notificationsManagement = mock(NotificationsManagement.class, withSettings().verboseLogging());
RealmsManagement realmsManagement = mock(RealmsManagement.class, withSettings().verboseLogging());
TokensManagement tokensManagement = mock(TokensManagement.class, withSettings().verboseLogging());
RegistrationsManagement registrationsManagement = mock(RegistrationsManagement.class, withSettings().verboseLogging());
TranslationProfileManagement translationProfileManagement = mock(TranslationProfileManagement.class, withSettings().verboseLogging());
GroupDelegationConfigGenerator groupDelegationConfigGenerator = mock(GroupDelegationConfigGenerator.class, withSettings().verboseLogging());
SessionManagement sessionManagement = mock(SessionManagement.class, withSettings().verboseLogging());
RegistrationFormTranslationActionGenerator regTranslationActionGenerator = mock(RegistrationFormTranslationActionGenerator.class, withSettings().verboseLogging());
ApplicationContext applicationContext = mock(ApplicationContext.class, withSettings().verboseLogging());
Binding binding = new Binding();
binding.setVariable("config", config);
binding.setVariable("attributeClassManagement", attributeClassManagement);
binding.setVariable("attributesManagement", attributesManagement);
binding.setVariable("attributeTypeManagement", attributeTypeManagement);
binding.setVariable("authenticatorManagement", authenticatorManagement);
binding.setVariable("bulkProcessingManagement", bulkProcessingManagement);
binding.setVariable("credentialManagement", credentialManagement);
binding.setVariable("credentialRequirementManagement", credentialRequirementManagement);
binding.setVariable("endpointManagement", endpointManagement);
binding.setVariable("enquiryManagement", enquiryManagement);
binding.setVariable("entityCredentialManagement", entityCredentialManagement);
binding.setVariable("entityManagement", entityManagement);
binding.setVariable("groupsManagement", groupsManagement);
binding.setVariable("identityTypesManagement", identityTypesManagement);
binding.setVariable("invitationManagement", invitationManagement);
binding.setVariable("messageTemplateManagement", messageTemplateManagement);
binding.setVariable("notificationsManagement", notificationsManagement);
binding.setVariable("preferencesManagement", preferencesManagement);
binding.setVariable("realmsManagement", realmsManagement);
binding.setVariable("registrationsManagement", registrationsManagement);
binding.setVariable("translationProfileManagement", translationProfileManagement);
binding.setVariable("userImportManagement", userImportManagement);
binding.setVariable("msgSrc", unityMessageSource);
binding.setVariable("attributeTypeSupport", attributeTypeSupport);
binding.setVariable("identityTypeSupport", identityTypeSupport);
binding.setVariable("groupDelegationConfigGenerator", groupDelegationConfigGenerator);
binding.setVariable("sessionManagement", sessionManagement);
binding.setVariable("isColdStart", true);
binding.setVariable("event", event.getTrigger());
binding.setVariable("context", event.getContents());
binding.setVariable("regTranslationActionGenerator", regTranslationActionGenerator);
binding.setVariable("log", LOG);
binding.setVariable("applicationContext", applicationContext);
binding.setVariable("tokensManagement", tokensManagement);
return binding;
}
Aggregations