1 package jtest.org.onap.ccsdk.sli.adaptors.rm.util;
4 import org.onap.ccsdk.sli.adaptors.rm.data.AllocationItem;
5 import org.onap.ccsdk.sli.adaptors.rm.data.LabelAllocationRequest;
6 import org.onap.ccsdk.sli.adaptors.rm.data.LabelResource;
7 import org.onap.ccsdk.sli.adaptors.rm.util.LabelUtil;
11 import static org.junit.Assert.*;
13 public class LabelUtilTest {
16 public void testLabelUtils() {
17 LabelAllocationRequest req = new LabelAllocationRequest();
20 req.label = "testLabel";
21 req.resourceUnionId = "123";
22 req.applicationId = "testApp";
23 req.assetId = "asset1";
24 req.resourceName = "resource1";
25 req.resourceSetId = "set1";
29 LabelResource resource = new LabelResource();
30 resource.label = "testLabel";
32 LabelUtil.allocateLabel(resource, req);
33 LabelUtil.checkLabel(resource, req);
34 LabelUtil.recalculate(resource);