Package com.atlassian.jira.rest.client.api.domain

Examples of com.atlassian.jira.rest.client.api.domain.Component


  }

  @Test
  public void testParseComponenWithNoLead() throws Exception {
    ComponentJsonParser parser = new ComponentJsonParser();
    final Component component = parser.parse(ResourceUtil
        .getJsonObjectFromResource("/json/component/complete-no-lead-valid.json"));
    Assert.assertEquals(new URI("http://localhost:8090/jira/rest/api/latest/component/10001"), component.getSelf());
    Assert.assertEquals("Component B", component.getName());
    Assert.assertNull(component.getLead());
    Assert.assertEquals("another description", component.getDescription());
  }
View Full Code Here


  }

  @Test
  public void testParseComponentWithId() throws Exception {
    ComponentJsonParser parser = new ComponentJsonParser();
    final Component component = parser.parse(ResourceUtil
        .getJsonObjectFromResource("/json/component/complete-valid-with-id.json"));
    Assert.assertEquals(new URI("http://localhost:8090/jira/rest/api/latest/component/10001"), component.getSelf());
    Assert.assertEquals("Component B", component.getName());
    Assert.assertEquals(TestConstants.USER1_BASIC_DEPRECATED, component.getLead());
    Assert.assertEquals("another description", component.getDescription());
    Assert.assertEquals(Long.valueOf(10001), component.getId());
  }
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.api.domain.Component

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.