use of com.synopsys.integration.detect.workflow.blackduck.project.customfields.CustomFieldDocument in project synopsys-detect by blackducksoftware.
the class DetectCustomFieldParserTest method parsedMissingLabelStillList.
@Test
public void parsedMissingLabelStillList() throws DetectUserFriendlyException {
Map<String, String> props = new HashMap<>();
props.put("detect.custom.fields.project[0].value", "value1");
DetectCustomFieldParser parser = new DetectCustomFieldParser();
CustomFieldDocument document = parser.parseCustomFieldDocument(props);
CustomFieldElement element = document.getProject().get(0);
Assertions.assertEquals("", element.getLabel());
}
Aggregations