package be.fgov.ehealth.technicalconnector.services.daas;

import org.junit.Assert;

import java.util.List;
import java.util.Map;

public class DaasAssertionUtils {


    public static void assertAttributeValue(Map<String, List<AttributeValue>> result, String attributeName, int expected, AttributeValue.ValueType type) {
        Assert.assertTrue(result.containsKey(attributeName));
        List<AttributeValue> urnLoe = result.get(attributeName);
        Assert.assertEquals(expected, urnLoe.size());
        for (AttributeValue attributeValue : urnLoe) {
            Assert.assertEquals(type, attributeValue.getValueType());
        }
    }
}
