use of uk.gov.ida.hub.policy.configuration.SessionStoreConfiguration in project verify-hub by alphagov.
the class PolicyConfigurationBuilder method build.
public PolicyConfiguration build() {
SessionStoreConfiguration sessionStoreConfiguration = mock(SessionStoreConfiguration.class);
when(sessionStoreConfiguration.getRedisConfiguration()).thenReturn(new RedisConfiguration() {
@Override
public Long getRecordTTL() {
return 3600L;
}
@Override
public RedisURI getUri() {
return new RedisURI("localhost", redisPort, java.time.Duration.ofSeconds(1));
}
});
return new TestPolicyConfiguration(new JerseyClientConfiguration(), serviceInfo, mock(ClientTrustStoreConfiguration.class), sessionStoreConfiguration, timeoutPeriod, Duration.minutes(1), Duration.minutes(15));
}
Aggregations