import org.junit.rules.TestName;
import org.openecomp.sdc.be.dao.api.ActionStatus;
import org.openecomp.sdc.be.datatypes.enums.ResourceTypeEnum;
-import org.openecomp.sdc.be.model.AttributeDefinition;
import org.openecomp.sdc.be.model.LifecycleStateEnum;
import org.openecomp.sdc.be.model.PropertyDefinition;
import org.openecomp.sdc.be.model.Resource;
checkListValues(listValue.get(1), 2, SPECIAL_CHARACTERS);
// Verify attributes
- List<AttributeDefinition> attributes = resource.getAttributes();
+ List<PropertyDefinition> attributes = resource.getAttributes();
assertEquals("check properties size", 2, attributes.size());
// Verify attribute from type map
- AttributeDefinition attributeMapDefinition = attributes.stream()
+ PropertyDefinition attributeMapDefinition = attributes.stream()
.filter(p -> p.getName().equals("validation_test_map")).findFirst().get();
String defaultMapValue = attributeMapDefinition.getDefaultValue();
Map attributeMapValue = gson.fromJson(defaultMapValue, Map.class);
checkMapValues(attributeMapValue, "key", 2, SPECIAL_CHARACTERS);
// Verify attribute from type list
- AttributeDefinition attributeListDefinition = attributes.stream()
+ PropertyDefinition attributeListDefinition = attributes.stream()
.filter(p -> p.getName().equals("validation_test_list")).findFirst().get();
String defaultListValue = attributeListDefinition.getDefaultValue();