use of uk.gov.ida.hub.policy.domain.PersistentId in project verify-hub by alphagov.
the class EidasAwaitingCycle3DataStateBuilderTest method build.
@Test
public void build() {
EidasAwaitingCycle3DataState state = EidasAwaitingCycle3DataStateBuilder.anEidasAwaitingCycle3DataState().build();
assertThat(state.getRequestId()).isEqualTo("requestId");
assertThat(state.getRequestIssuerEntityId()).isEqualTo("requestIssuerId");
assertThat(state.getSessionExpiryTimestamp()).isEqualTo(DateTime.now().plusMinutes(10));
assertThat(state.getAssertionConsumerServiceUri()).isEqualTo(URI.create("assertionConsumerServiceUri"));
assertThat(state.getSessionId()).isEqualTo(new SessionId("sessionId"));
assertThat(state.getTransactionSupportsEidas()).isEqualTo(true);
assertThat(state.getIdentityProviderEntityId()).isEqualTo("identityProviderEntityId");
assertThat(state.getMatchingServiceEntityId()).isEqualTo("matchingServiceAdapterEntityId");
assertThat(state.getRelayState()).isEqualTo(Optional.of("relayState"));
assertThat(state.getPersistentId()).isEqualTo(new PersistentId("nameId"));
assertThat(state.getLevelOfAssurance()).isEqualTo(LevelOfAssurance.LEVEL_2);
assertThat(state.getEncryptedIdentityAssertion()).isEqualTo("encryptedIdentityAssertion");
}
use of uk.gov.ida.hub.policy.domain.PersistentId in project verify-hub by alphagov.
the class EidasCycle0And1MatchRequestSentStateBuilderTest method build.
@Test
public void build() {
EidasCycle0And1MatchRequestSentState state = EidasCycle0And1MatchRequestSentStateBuilder.anEidasCycle0And1MatchRequestSentState().build();
assertThat(state.getRequestId()).isEqualTo("requestId");
assertThat(state.getIdentityProviderEntityId()).isEqualTo("identityProviderEntityId");
assertThat(state.getSessionExpiryTimestamp()).isEqualTo(DateTime.now().plusMinutes(10));
assertThat(state.getRelayState()).isEqualTo(Optional.absent());
assertThat(state.getRequestIssuerEntityId()).isEqualTo("requestIssuerId");
assertThat(state.getEncryptedIdentityAssertion()).isEqualTo("encryptedIdentityAssertion");
assertThat(state.getAssertionConsumerServiceUri()).isEqualTo(URI.create("assertionConsumerServiceUri"));
assertThat(state.getMatchingServiceAdapterEntityId()).isEqualTo("matchingServiceAdapterEntityId");
assertThat(state.getSessionId()).isEqualTo(new SessionId("sessionId"));
assertThat(state.getIdpLevelOfAssurance()).isEqualTo(LevelOfAssurance.LEVEL_2);
assertThat(state.getPersistentId()).isEqualTo(new PersistentId("default-name-id"));
assertThat(state.getTransactionSupportsEidas()).isEqualTo(true);
}
use of uk.gov.ida.hub.policy.domain.PersistentId in project verify-hub by alphagov.
the class EidasCycle3MatchRequestSentStateBuilderTest method build.
@Test
public void build() {
EidasCycle3MatchRequestSentState state = EidasCycle3MatchRequestSentStateBuilder.anEidasCycle3MatchRequestSentState().build();
assertThat(state.getRequestId()).isEqualTo("requestId");
assertThat(state.getIdentityProviderEntityId()).isEqualTo("identityProviderEntityId");
assertThat(state.getSessionExpiryTimestamp()).isEqualTo(DateTime.now().plusMinutes(10));
assertThat(state.getRelayState()).isEqualTo(Optional.absent());
assertThat(state.getRequestIssuerEntityId()).isEqualTo("requestIssuerId");
assertThat(state.getEncryptedIdentityAssertion()).isEqualTo("encryptedIdentityAssertion");
assertThat(state.getAssertionConsumerServiceUri()).isEqualTo(URI.create("assertionConsumerServiceUri"));
assertThat(state.getMatchingServiceAdapterEntityId()).isEqualTo("matchingServiceAdapterEntityId");
assertThat(state.getSessionId()).isEqualTo(new SessionId("sessionId"));
assertThat(state.getIdpLevelOfAssurance()).isEqualTo(LevelOfAssurance.LEVEL_2);
assertThat(state.getPersistentId()).isEqualTo(new PersistentId("default-name-id"));
assertThat(state.getTransactionSupportsEidas()).isEqualTo(true);
}
Aggregations