Class GHOrganizationTest


public class GHOrganizationTest extends AbstractGitHubWireMockTest
The Class GHOrganizationTest.
  • Field Details

  • Constructor Details

    • GHOrganizationTest

      public GHOrganizationTest()
      Create default GHOrganizationTest instance
  • Method Details

    • getWireMockOptions

      protected com.github.tomakehurst.wiremock.core.WireMockConfiguration getWireMockOptions()
      Enable response templating to allow support validating pagination of external groups
      Overrides:
      getWireMockOptions in class AbstractGitHubWireMockTest
      Returns:
      the updated WireMock options
    • cleanUpTeam

      public void cleanUpTeam() throws IOException
      Clean up team.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateRepository

      public void testCreateRepository() throws IOException
      Test create repository.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateRepositoryWithAutoInitialization

      public void testCreateRepositoryWithAutoInitialization() throws IOException
      Test create repository with auto initialization.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateRepositoryWithParameterIsTemplate

      public void testCreateRepositoryWithParameterIsTemplate() throws IOException
      Test create repository with parameter is template.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateRepositoryWithTemplate

      public void testCreateRepositoryWithTemplate() throws IOException
      Test create repository with template.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateRepositoryWithTemplateAndGHRepository

      public void testCreateRepositoryWithTemplateAndGHRepository() throws IOException
      Test create repository with template.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateRepositoryFromTemplateRepositoryNull

      public void testCreateRepositoryFromTemplateRepositoryNull() throws IOException
      Test create repository with template repository null.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateRepositoryWhenRepositoryTemplateIsNotATemplate

      public void testCreateRepositoryWhenRepositoryTemplateIsNotATemplate() throws IOException
      Test create repository when repository template is not a template.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testInviteUser

      public void testInviteUser() throws IOException
      Test invite user.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testGetMembership

      public void testGetMembership() throws IOException
      Test get user membership
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testListMembersWithFilter

      public void testListMembersWithFilter() throws IOException
      Test list members with filter.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testListMembersWithRole

      public void testListMembersWithRole() throws IOException
      Test list members with role.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testListSecurityManagers

      public void testListSecurityManagers() throws IOException
      Test list security managers.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testListOutsideCollaborators

      public void testListOutsideCollaborators() throws IOException
      Test list outside collaborators.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testListOutsideCollaboratorsWithFilter

      public void testListOutsideCollaboratorsWithFilter() throws IOException
      Test list outside collaborators with filter.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateTeamWithRepoAccess

      public void testCreateTeamWithRepoAccess() throws IOException
      Test create team with repo access.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateTeamWithNullPerm

      public void testCreateTeamWithNullPerm() throws Exception
      Test create team with null perm.
      Throws:
      Exception - the exception
    • testCreateTeamWithRepoPerm

      public void testCreateTeamWithRepoPerm() throws Exception
      Test create team with repo perm.
      Throws:
      Exception - the exception
    • testCreateTeamWithRepoRole

      public void testCreateTeamWithRepoRole() throws IOException
      Test create team with repo role.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateTeam

      public void testCreateTeam() throws IOException
      Test create team.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateVisibleTeam

      public void testCreateVisibleTeam() throws IOException
      Test create visible team.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testCreateAllArgsTeam

      public void testCreateAllArgsTeam() throws IOException
      Test create all args team.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testAreOrganizationProjectsEnabled

      public void testAreOrganizationProjectsEnabled() throws IOException
      Test are organization projects enabled.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testEnableOrganizationProjects

      public void testEnableOrganizationProjects() throws IOException
      Test enable organization projects.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testListExternalGroupsWithoutPagination

      public void testListExternalGroupsWithoutPagination() throws IOException
      Test list external groups without pagination.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testListExternalGroupsWithPagination

      public void testListExternalGroupsWithPagination() throws IOException
      Test list external groups with pagination.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testListExternalGroupsWithFilter

      public void testListExternalGroupsWithFilter() throws IOException
      Test list external groups with name filtering.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testListExternalGroupsNotEnterpriseManagedOrganization

      public void testListExternalGroupsNotEnterpriseManagedOrganization() throws IOException
      Test list external groups without pagination for non enterprise managed organization.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testGetExternalGroup

      public void testGetExternalGroup() throws IOException
      Test get external group
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testGetExternalGroupNotEnterpriseManagedOrganization

      public void testGetExternalGroupNotEnterpriseManagedOrganization() throws IOException
      Test get external group for not enterprise managed organization
      Throws:
      IOException - Signals that an I/O exception has occurred.