Search in sources :

Example 1 with OperationState

use of eu.bcvsolutions.idm.core.api.domain.OperationState in project CzechIdMng by bcvsolutions.

the class ParameterConverterUnitTest method testEnumParameter.

@Test
public void testEnumParameter() {
    Map<String, Object> parameters = new HashMap<>();
    OperationState value = OperationState.CREATED;
    parameters.put(PARAMETER_NAME, value.toString());
    // 
    assertEquals(value, parameterConverter.toEnum(parameters, PARAMETER_NAME, OperationState.class));
}
Also used : HashMap(java.util.HashMap) OperationState(eu.bcvsolutions.idm.core.api.domain.OperationState) AbstractVerifiableUnitTest(eu.bcvsolutions.idm.test.api.AbstractVerifiableUnitTest) Test(org.junit.Test)

Aggregations

OperationState (eu.bcvsolutions.idm.core.api.domain.OperationState)1 AbstractVerifiableUnitTest (eu.bcvsolutions.idm.test.api.AbstractVerifiableUnitTest)1 HashMap (java.util.HashMap)1 Test (org.junit.Test)1