Package com.denimgroup.threadfix.service.defects.utils.jira

Examples of com.denimgroup.threadfix.service.defects.utils.jira.JiraJsonMetadataResponse$Child


    public static List<DynamicFormField> getFields(String jsonString, UserRetriever retriever) {

        LOG.debug("Starting JSON field description deserialization.");

        try {
            JiraJsonMetadataResponse response =
                    new ObjectMapper().readValue(jsonString, JiraJsonMetadataResponse.class);

            assert response.projects.size() != 0 :
                    "The response didn't contain any projects. Something went wrong.";
            assert response.projects.size() == 1 :
                    "The response contained more than one project. Something went wrong.";

            Project project = response.getProjectOrNull();

            List<DynamicFormField> fieldList = list();

            if (project != null) {
                for (IssueType issueType : project.getIssuetypes()) {
View Full Code Here


  @Test
  public void testCircularDependencyPojos() {
    Parent parent = factory.manufacturePojo(Parent.class);
    Assert.assertNotNull("The parent pojo cannot be null!", parent);

    Child child = parent.getChild();
    Assert.assertNotNull("The child pojo cannot be null!", child);
  }
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.service.defects.utils.jira.JiraJsonMetadataResponse$Child

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.