use of uk.gov.ida.hub.policy.domain.StateController in project verify-hub by alphagov.
the class StateControllerFactoryTest method shouldCreateAMatchingServiceRequestErrorStateController.
@Test
public void shouldCreateAMatchingServiceRequestErrorStateController() {
StateController controller = stateControllerFactory.build(aMatchingServiceRequestErrorState().build(), stateTransitionAction);
assertThat(controller).isInstanceOf(MatchingServiceRequestErrorStateController.class);
}
use of uk.gov.ida.hub.policy.domain.StateController in project verify-hub by alphagov.
the class StateControllerFactoryTest method shouldCreateASuccessfulMatchStateController.
@Test
public void shouldCreateASuccessfulMatchStateController() {
StateController controller = stateControllerFactory.build(aSuccessfulMatchState().build(), stateTransitionAction);
assertThat(controller).isInstanceOf(SuccessfulMatchStateController.class);
}
use of uk.gov.ida.hub.policy.domain.StateController in project verify-hub by alphagov.
the class StateControllerFactoryTest method shouldCreateACycle3MatchRequestSentStateController.
@Test
public void shouldCreateACycle3MatchRequestSentStateController() {
StateController controller = stateControllerFactory.build(aCycle3MatchRequestSentState().build(), stateTransitionAction);
assertThat(controller).isInstanceOf(Cycle3MatchRequestSentStateController.class);
}
use of uk.gov.ida.hub.policy.domain.StateController in project verify-hub by alphagov.
the class StateControllerFactoryTest method shouldCreateAnAuthnFailedErrorStateController.
@Test
public void shouldCreateAnAuthnFailedErrorStateController() {
StateController controller = stateControllerFactory.build(anAuthnFailedErrorState().build(), stateTransitionAction);
assertThat(controller).isInstanceOf(AuthnFailedErrorStateController.class);
}
use of uk.gov.ida.hub.policy.domain.StateController in project verify-hub by alphagov.
the class StateControllerFactoryTest method shouldCreateAUserAccountCreatedStateController.
@Test
public void shouldCreateAUserAccountCreatedStateController() {
StateController controller = stateControllerFactory.build(aUserAccountCreatedState().build(), stateTransitionAction);
assertThat(controller).isInstanceOf(UserAccountCreatedStateController.class);
}
Aggregations