Search in sources :

Example 1 with PatternTemplateResource

use of com.epam.ta.reportportal.ws.model.project.config.pattern.PatternTemplateResource in project service-api by reportportal.

the class PatternTemplateConverterTest method toResourceTest.

@Test
public void toResourceTest() {
    PatternTemplate patternTemplate = get();
    PatternTemplateResource resource = PatternTemplateConverter.TO_RESOURCE.apply(patternTemplate);
    assertEquals(patternTemplate.getId(), resource.getId());
    assertEquals(patternTemplate.getTemplateType().name(), resource.getType());
    assertEquals(patternTemplate.getName(), resource.getName());
    assertEquals(patternTemplate.getValue(), resource.getValue());
    assertEquals(patternTemplate.isEnabled(), resource.getEnabled());
}
Also used : PatternTemplateResource(com.epam.ta.reportportal.ws.model.project.config.pattern.PatternTemplateResource) PatternTemplate(com.epam.ta.reportportal.entity.pattern.PatternTemplate) Test(org.junit.jupiter.api.Test)

Aggregations

PatternTemplate (com.epam.ta.reportportal.entity.pattern.PatternTemplate)1 PatternTemplateResource (com.epam.ta.reportportal.ws.model.project.config.pattern.PatternTemplateResource)1 Test (org.junit.jupiter.api.Test)1