Search in sources :

Example 1 with VisitorState

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

the class TargetDeliveryRequestTest method verifyVisitorState.

private void verifyVisitorState(TargetDeliveryResponse targetDeliveryResponse, Map<String, CustomerState> customerIdsExpected) {
    assertNotNull(targetDeliveryResponse.getVisitorState());
    assertEquals(1, targetDeliveryResponse.getVisitorState().size());
    VisitorState visitorState = targetDeliveryResponse.getVisitorState().get(TEST_ORG_ID);
    Map<String, CustomerState> customerIdsActual = visitorState.getCustomerIDs();
    assertEquals(customerIdsExpected, customerIdsActual);
}
Also used : CustomerState(com.adobe.experiencecloud.ecid.visitor.CustomerState) VisitorState(com.adobe.experiencecloud.ecid.visitor.VisitorState)

Aggregations

CustomerState (com.adobe.experiencecloud.ecid.visitor.CustomerState)1 VisitorState (com.adobe.experiencecloud.ecid.visitor.VisitorState)1