Search in sources :

Example 11 with StateController

use of uk.gov.ida.hub.policy.domain.StateController in project verify-hub by alphagov.

the class StateControllerFactoryTest method build_shouldCreateAnAwaitingCycle3DataController.

@Test
public void build_shouldCreateAnAwaitingCycle3DataController() {
    StateController controller = factory.build(anAwaitingCycle3DataState().build(), stateTransitionAction);
    assertThat(controller).isInstanceOf(AwaitingCycle3DataStateController.class);
}
Also used : StateController(uk.gov.ida.hub.policy.domain.StateController) Test(org.junit.Test)

Example 12 with StateController

use of uk.gov.ida.hub.policy.domain.StateController in project verify-hub by alphagov.

the class StateControllerFactoryTest method build_shouldCreateUserAccountCreationFailedStateController.

@Test
public void build_shouldCreateUserAccountCreationFailedStateController() {
    StateController controller = factory.build(aUserAccountCreationFailedState().build(), stateTransitionAction);
    assertThat(controller).isInstanceOf(UserAccountCreationFailedStateController.class);
}
Also used : StateController(uk.gov.ida.hub.policy.domain.StateController) Test(org.junit.Test)

Example 13 with StateController

use of uk.gov.ida.hub.policy.domain.StateController in project verify-hub by alphagov.

the class StateControllerFactoryTest method build_shouldCreateAEidasSuccessfulMatchController.

@Test
public void build_shouldCreateAEidasSuccessfulMatchController() {
    StateController controller = factory.build(aEidasSuccessfulMatchState().build(), stateTransitionAction);
    assertThat(controller).isInstanceOf(EidasSuccessfulMatchStateController.class);
}
Also used : StateController(uk.gov.ida.hub.policy.domain.StateController) Test(org.junit.Test)

Example 14 with StateController

use of uk.gov.ida.hub.policy.domain.StateController in project verify-hub by alphagov.

the class StateControllerFactoryTest method shouldCreateAUserAccountCreationRequestSentStateController.

@Test
public void shouldCreateAUserAccountCreationRequestSentStateController() {
    StateController controller = factory.build(aUserAccountCreationRequestSentState().build(), stateTransitionAction);
    assertThat(controller).isInstanceOf(UserAccountCreationRequestSentStateController.class);
}
Also used : StateController(uk.gov.ida.hub.policy.domain.StateController) Test(org.junit.Test)

Example 15 with StateController

use of uk.gov.ida.hub.policy.domain.StateController in project verify-hub by alphagov.

the class StateControllerFactoryTest method build_shouldCreateAnIdpSelectedController.

@Test
public void build_shouldCreateAnIdpSelectedController() {
    StateController controller = factory.build(anIdpSelectedState().build(), stateTransitionAction);
    assertThat(controller).isInstanceOf(IdpSelectedStateController.class);
}
Also used : StateController(uk.gov.ida.hub.policy.domain.StateController) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)59 StateController (uk.gov.ida.hub.policy.domain.StateController)59 ResponseFromHub (uk.gov.ida.hub.policy.domain.ResponseFromHub)16 AuthnFailedErrorState (uk.gov.ida.hub.policy.domain.state.AuthnFailedErrorState)1 AwaitingCycle3DataState (uk.gov.ida.hub.policy.domain.state.AwaitingCycle3DataState)1 Cycle0And1MatchRequestSentState (uk.gov.ida.hub.policy.domain.state.Cycle0And1MatchRequestSentState)1 Cycle3DataInputCancelledState (uk.gov.ida.hub.policy.domain.state.Cycle3DataInputCancelledState)1 Cycle3MatchRequestSentState (uk.gov.ida.hub.policy.domain.state.Cycle3MatchRequestSentState)1 FraudEventDetectedState (uk.gov.ida.hub.policy.domain.state.FraudEventDetectedState)1 IdpSelectedState (uk.gov.ida.hub.policy.domain.state.IdpSelectedState)1 MatchingServiceRequestErrorState (uk.gov.ida.hub.policy.domain.state.MatchingServiceRequestErrorState)1 NoMatchState (uk.gov.ida.hub.policy.domain.state.NoMatchState)1 RequesterErrorState (uk.gov.ida.hub.policy.domain.state.RequesterErrorState)1 SessionStartedState (uk.gov.ida.hub.policy.domain.state.SessionStartedState)1 SuccessfulMatchState (uk.gov.ida.hub.policy.domain.state.SuccessfulMatchState)1 TimeoutState (uk.gov.ida.hub.policy.domain.state.TimeoutState)1 UserAccountCreatedState (uk.gov.ida.hub.policy.domain.state.UserAccountCreatedState)1 UserAccountCreationFailedState (uk.gov.ida.hub.policy.domain.state.UserAccountCreationFailedState)1 UserAccountCreationRequestSentState (uk.gov.ida.hub.policy.domain.state.UserAccountCreationRequestSentState)1