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

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


    return projects;
  }
 
  public Versions getVersions() {
    if(versions==null) {
      versions = new Versions();
    }
    return versions;
  }
View Full Code Here


    input.close();
  }

  @Test
  public void testParseResponse() throws Exception {
    Versions ct = testee.parseResponse(input, HttpStatus.SC_OK);
   
    assertNotNull(ct);
    assertEquals(VersionValidator.COUNT, ct.getAll().size());
   
    VersionValidator.validate1(ct.getById(1));
    VersionValidator.validate2(ct.getById(2));
    VersionValidator.validate3(ct.getById(3));
   
    List<Version> versions = ct.getById(new int[]{2,3});
    assertNotNull(versions);
    assertEquals(2, versions.size());
    VersionValidator.validate2(versions.get(0));
    VersionValidator.validate3(versions.get(1));

    versions = ct.getOpenById(new int[]{1,2,3});
    assertEquals(2, versions.size());
    assertEquals(2, versions.get(0).getId());
    assertEquals(3, versions.get(1).getId());
  }
View Full Code Here

TOP

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

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.