Package zendeskapi.models.groups

Examples of zendeskapi.models.groups.MultipleGroupResponse


  }

  @Test
  public void testGetGroups() throws Exception {
    LOG.info("Get groups");
    MultipleGroupResponse mgr = API.getGroups().getGroups();
    List<Group> groups = mgr.getGroups();
    Assert.assertEquals(mgr.getCount().intValue(), 1);
    Assert.assertEquals(groups.size(), 1);
    Assert.assertEquals(groups.get(0).getName(), "Support");
  }
View Full Code Here


  }

  @Test
  public void testGetAssignableGroups() throws Exception {
    LOG.info("Get assignable groups");
    MultipleGroupResponse mgr = API.getGroups().getAssignableGroups();
    List<Group> groups = mgr.getGroups();
    Assert.assertEquals(mgr.getCount().intValue(), 1);
    Assert.assertEquals(groups.size(), 1);
    Assert.assertEquals(groups.get(0).getName(), "Support");
  }
View Full Code Here

  }

  @Test
  public void testGetGroupById() throws Exception {
    LOG.info("Get group by id");
    MultipleGroupResponse mgr = API.getGroups().getGroups();
    List<Group> groups = mgr.getGroups();
    Group groupById = API.getGroups().getGroupById(groups.get(0).getId()).getGroup();
    Assert.assertEquals(groupById.getId(), groups.get(0).getId());
  }
View Full Code Here

TOP

Related Classes of zendeskapi.models.groups.MultipleGroupResponse

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.