Package net.sf.redmine_mylyn.api.model.container

Examples of net.sf.redmine_mylyn.api.model.container.CustomFields


    return trackers;
  }
 
  public CustomFields getCustomFields() {
    if(customFields==null) {
      customFields = new CustomFields();
    }
    return customFields;
  }
View Full Code Here


    input.close();
  }

  @Test
  public void testParseResponse() throws Exception {
    CustomFields ct = testee.parseResponse(input, HttpStatus.SC_OK);
   
    assertNotNull(ct);
    assertEquals(CustomFieldValidator.COUNT, ct.getAll().size());
   
    CustomFieldValidator.validate1(ct.getById(1));
    CustomFieldValidator.validate2(ct.getById(2));
    CustomFieldValidator.validate7(ct.getById(7));
   
    int idx=0;
    assertNotNull(ct.getIssueCustomFields());
    assertEquals(7, ct.getIssueCustomFields().size());
    assertEquals(1, ct.getIssueCustomFields().get(idx++).getId());
    assertEquals(2, ct.getIssueCustomFields().get(idx++).getId());
    assertEquals(6, ct.getIssueCustomFields().get(idx++).getId());
    assertEquals(8, ct.getIssueCustomFields().get(idx++).getId());
    assertEquals(9, ct.getIssueCustomFields().get(idx++).getId());
    assertEquals(11, ct.getIssueCustomFields().get(idx++).getId());
    assertEquals(12, ct.getIssueCustomFields().get(idx++).getId());

    assertNotNull(ct.getTimeEntryCustomFields());
    assertEquals(1, ct.getTimeEntryCustomFields().size());
    assertEquals(7, ct.getTimeEntryCustomFields().get(0).getId());
  }
View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.api.model.container.CustomFields

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.