package org.apereo.cas.adaptors.x509.web.flow;

import org.apereo.cas.adaptors.x509.config.X509AuthenticationConfiguration;
import org.apereo.cas.config.CasCoreMultifactorAuthenticationConfiguration;
import org.apereo.cas.web.flow.BaseWebflowConfigurerTests;
import org.apereo.cas.web.flow.CasWebflowConfigurer;
import org.apereo.cas.web.flow.X509WebflowConfigurer;
import org.apereo.cas.web.flow.config.CasMultifactorAuthenticationWebflowConfiguration;
import org.apereo.cas.web.flow.config.X509AuthenticationWebflowConfiguration;

import lombok.val;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.Import;
import org.springframework.webflow.engine.Flow;
import org.springframework.webflow.engine.TransitionableState;

import static org.junit.jupiter.api.Assertions.*;

/**
 * This is {@link X509WebflowConfigurerTests}.
 *
 * @author Misagh Moayyed
 * @since 6.2.0
 */
@Import({
    X509AuthenticationConfiguration.class,
    X509AuthenticationWebflowConfiguration.class,
    CasCoreMultifactorAuthenticationConfiguration.class,
    CasMultifactorAuthenticationWebflowConfiguration.class,
    BaseWebflowConfigurerTests.SharedTestConfiguration.class
})
@Tag("X509")
public class X509WebflowConfigurerTests extends BaseWebflowConfigurerTests {
    @Test
    public void verifyOperation() {
        assertFalse(casWebflowExecutionPlan.getWebflowConfigurers().isEmpty());
        val flow = (Flow) this.loginFlowDefinitionRegistry.getFlowDefinition(CasWebflowConfigurer.FLOW_ID_LOGIN);
        assertNotNull(flow);
        var state = (TransitionableState) flow.getState(X509WebflowConfigurer.STATE_ID_START_X509);
        assertNotNull(state);
    }
}

@@ -336,20 +336,19 @@
 eb.flow.
-X509
+Cas
 WebflowC
@@ -341,39 +341,38 @@
 ow.CasWebflowCon
-figurer
+stants
 ;%0Aimport org.ape
@@ -1628,20 +1628,19 @@
 etState(
-X509
+Cas
 WebflowC
@@ -1641,23 +1641,22 @@
 bflowCon
-figurer
+stants
 .STATE_I
@@ -1661,18 +1661,18 @@
 _ID_
+X509_
 START
-_X509
 );%0A 

fix build