Search in sources :

Example 6 with SprintDTO

use of com.bbva.arq.devops.ae.mirrorgate.core.dto.SprintDTO in project mirrorgate-jira-stories-collector by BBVA.

the class SprintParserTests method itShouldNotFailWhenMissingFields.

@Test
public void itShouldNotFailWhenMissingFields() {
    String in = "com.atlassian.greenhopper.service.sprint.Sprint@20d5ab81[id=1003]";
    SprintDTO out = issueUtils.parseSprint(in);
    assertEquals(out.getId(), "1003");
    assertEquals(out.getStatus(), null);
    assertEquals(out.getName(), null);
    assertEquals(out.getStartDate(), null);
    assertEquals(out.getEndDate(), null);
    assertEquals(out.getCompleteDate(), null);
}
Also used : SprintDTO(com.bbva.arq.devops.ae.mirrorgate.core.dto.SprintDTO) SpringBootTest(org.springframework.boot.test.context.SpringBootTest) Test(org.junit.Test)

Aggregations

SprintDTO (com.bbva.arq.devops.ae.mirrorgate.core.dto.SprintDTO)6 Test (org.junit.Test)3 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)3 IssueDTO (com.bbva.arq.devops.ae.mirrorgate.core.dto.IssueDTO)1 SprintStatus (com.bbva.arq.devops.ae.mirrorgate.core.utils.SprintStatus)1 Matcher (java.util.regex.Matcher)1 Scheduled (org.springframework.scheduling.annotation.Scheduled)1