Search in sources :

Example 1 with Attribute

use of com.epam.ta.reportportal.entity.attribute.Attribute in project commons-dao by reportportal.

the class ProjectUtilsTest method getAttributeWithValuesMap.

private static Map<Attribute, String> getAttributeWithValuesMap() {
    final Attribute attr1 = new Attribute();
    attr1.setId(1L);
    attr1.setName("one");
    final Attribute attr2 = new Attribute();
    attr2.setId(1L);
    attr2.setName("two");
    Attribute attr3 = new Attribute();
    attr3.setId(1L);
    attr3.setName("analyzer.param");
    Attribute keepLogs = new Attribute();
    keepLogs.setId(1L);
    keepLogs.setName(ProjectAttributeEnum.KEEP_LOGS.getAttribute());
    Map<Attribute, String> attributeMap = new HashMap<>();
    attributeMap.put(attr1, "valOne");
    attributeMap.put(attr2, "valTwo");
    attributeMap.put(attr3, "value");
    attributeMap.put(keepLogs, ProjectAttributeEnum.KEEP_LOGS.getDefaultValue());
    return attributeMap;
}
Also used : Attribute(com.epam.ta.reportportal.entity.attribute.Attribute)

Aggregations

Attribute (com.epam.ta.reportportal.entity.attribute.Attribute)1