Search in sources :

Example 6 with CustomerState

use of com.adobe.experiencecloud.ecid.visitor.CustomerState in project target-java-sdk by adobe.

the class TargetDeliveryRequestTest method validateCustomerId.

private void validateCustomerId(Map<String, CustomerState> customerIdMap, List<CustomerId> customerIds) {
    assertEquals(customerIdMap.size(), customerIds.size());
    customerIds.forEach(customerId -> {
        CustomerState customerState = customerIdMap.get(customerId.getIntegrationCode());
        assertNotNull(customerState);
        assertEquals(customerState.getId(), customerId.getId());
        assertEquals(customerState.getAuthState().ordinal(), customerId.getAuthenticatedState().ordinal());
    });
}
Also used : CustomerState(com.adobe.experiencecloud.ecid.visitor.CustomerState)

Aggregations

CustomerState (com.adobe.experiencecloud.ecid.visitor.CustomerState)6 TargetDeliveryRequest (com.adobe.target.edge.client.model.TargetDeliveryRequest)3 TargetDeliveryResponse (com.adobe.target.edge.client.model.TargetDeliveryResponse)3 Test (org.junit.jupiter.api.Test)3 TargetCookie (com.adobe.target.edge.client.model.TargetCookie)2 VisitorState (com.adobe.experiencecloud.ecid.visitor.VisitorState)1 CustomerId (com.adobe.target.delivery.v1.model.CustomerId)1