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());
}
Aggregations