Package zendeskapi.models.forums

Examples of zendeskapi.models.forums.GroupForumResponse


    forumIds.add(responseForum.getId());
  }

  @Test
  public void testGetForums() throws Exception {
    GroupForumResponse groupForumResponse = API.getForums().getForums();
    Assert.assertTrue(groupForumResponse.getForums().size() > 0);
  }
View Full Code Here


    Assert.assertTrue(groupForumResponse.getForums().size() > 0);
  }

  @Test
  public void testGetForumById() throws Exception {
    GroupForumResponse groupForumResponse = API.getForums().getForums();
    Forum forum = groupForumResponse.getForums().get(0);
    IndividualForumResponse individualForumResponse = API.getForums().getForumById(forum.getId());
    Assert.assertEquals(individualForumResponse.getForum().getDescription(), forum.getDescription());
    Assert.assertEquals(individualForumResponse.getForum().getId(), forum.getId());
  }
View Full Code Here

    forum.setCategoryId(responseCategory.getId());
    IndividualForumResponse individualForumResponse = API.getForums().createForum(forum);
   
    forumIds.add(individualForumResponse.getForum().getId());
   
    GroupForumResponse groupForumResponse = API.getForums().getForumsByCategory(responseCategory.getId());
    List<Forum> forums = groupForumResponse.getForums();
    for (Forum f : forums) {
      Assert.assertEquals(f.getCategoryId(), responseCategory.getId());
    }
    Assert.assertTrue(API.getCategories().deleteCategory(responseCategory.getId()));
  }
View Full Code Here

TOP

Related Classes of zendeskapi.models.forums.GroupForumResponse

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.