Class SBuildServerAssert

    • Method Detail

      • hasRunningBuildsCount

        public SBuildServerAssert hasRunningBuildsCount​(int expected)
      • hasRegisteredAgentsCount

        public SBuildServerAssert hasRegisteredAgentsCount​(int expected)
        Assert that server contains specified number of registered (possibly unauthorized) agents.
      • doesNotHaveRegisteredAgent

        public SBuildServerAssert doesNotHaveRegisteredAgent​(int agentId)
      • hasUnregisteredAgentsCount

        public SBuildServerAssert hasUnregisteredAgentsCount​(int expected)
        Assert that server contains specified number of unregistered (possibly unauthorized) agents.
      • containsOnlyProjects

        public SBuildServerAssert containsOnlyProjects​(String... projectIds)
        Assert that server contains only projects with specified external ids in any order.
      • doesNotContainProjects

        public SBuildServerAssert doesNotContainProjects​(String... projectIds)
        Assert that server doesn't contain projects with specified external id.
      • doesNotContainProjects

        public SBuildServerAssert doesNotContainProjects​(List<String> projectIds)
        Assert that server doesn't contain projects with specified external id.
      • containsProjects

        public SBuildServerAssert containsProjects​(String... projectIds)
        Assert that server contains projects with specified external ids in any order.
      • containsProjects

        public SBuildServerAssert containsProjects​(List<String> projectIds)
        Assert that server contains projects with specified external ids in any order.
      • doesNotContainBuildTypes

        public SBuildServerAssert doesNotContainBuildTypes​(String... buildTypesIds)
        Assert that server doesn't contain build types with specified external ids.
      • doesNotContainTemplates

        public SBuildServerAssert doesNotContainTemplates​(String... templateIds)
        Assert that server doesn't contain templates with specified external ids.
      • containsBuildTypes

        public SBuildServerAssert containsBuildTypes​(String... buildTypesIds)
        Assert that server contains build types with specified external ids in any order.
      • containsTemplates

        public SBuildServerAssert containsTemplates​(String... templateIds)
        Assert that server contains build types with specified external ids in any order.
      • containsVcsRoots

        public SBuildServerAssert containsVcsRoots​(String... vcsRootsIds)
        Assert that server contains vcs roots with specified external ids in any order.
      • doesNotContainVcsRoots

        public SBuildServerAssert doesNotContainVcsRoots​(String... vcsRootsIds)
        Assert that server doesn't contain vcs roots with specified external ids.
      • containsUsers

        public SBuildServerAssert containsUsers​(String... userNames)
        Assert that server contains users with specified usernames
      • doesNotContainUsers

        public SBuildServerAssert doesNotContainUsers​(String... userNames)
        Assert that server doesn't contain users with specified usernames
      • containsUserWithUsernameAndPassword

        public SBuildServerAssert containsUserWithUsernameAndPassword​(String username,
                                                                      String password)
        Assert that server contains user with specified login/password
      • containsUserGroups

        public SBuildServerAssert containsUserGroups​(String... names)
        Assert that server contains user groups with specified names
      • containsUserGroupsWithKeys

        public SBuildServerAssert containsUserGroupsWithKeys​(String... keys)
        Assert that server contains user groups with specified keys
      • doesNotContainUserGroups

        public SBuildServerAssert doesNotContainUserGroups​(String... names)
        Assert that server doesn't contain user groups with specified names
      • doesNotContainUserGroupsWithKeys

        public SBuildServerAssert doesNotContainUserGroupsWithKeys​(String... keys)
        Assert that server doesn't contain user groups with specified keys
      • containsUserGroupsOnly

        public SBuildServerAssert containsUserGroupsOnly​(String... names)
        Assert that server contains only user groups with specified names