Package com.taskadapter.redmineapi.bean

Examples of com.taskadapter.redmineapi.bean.Project


*/
public class RedmineJSONDefaultsTest {
  @Test
  public void testProjectDefaults() throws JSONException {
    final String MINIMAL_PROJECT = "{\"project\":{\"created_on\":\"2012/05/16 01:08:56 -0700\",\"identifier\":\"test1337155905537\",\"homepage\":\"\",\"updated_on\":\"2012/05/16 01:08:56 -0700\",\"trackers\":[{\"name\":\"Bug\",\"id\":1},{\"name\":\"Feature\",\"id\":2},{\"name\":\"Support\",\"id\":3}],\"name\":\"Test name\",\"id\":1060}}";
    final Project project = parse(MINIMAL_PROJECT, "project",
        RedmineJSONParser.PROJECT_PARSER);
    Assert.assertEquals("", project.getDescription());
    Assert.assertEquals("", project.getHomepage());
  }
View Full Code Here

TOP

Related Classes of com.taskadapter.redmineapi.bean.Project

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.