Class SBuildServerAssert
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<SBuildServerAssert,BuildServerEx>
-
- jetbrains.buildServer.serverSide.asserts.SBuildServerAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<SBuildServerAssert,BuildServerEx>
,org.assertj.core.api.Descriptable<SBuildServerAssert>
,org.assertj.core.api.ExtensionPoints<SBuildServerAssert,BuildServerEx>
public class SBuildServerAssert extends org.assertj.core.api.AbstractAssert<SBuildServerAssert,BuildServerEx>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SBuildServerAssert
containsBuildTypes(String... buildTypesIds)
Assert that server contains build types with specified external ids in any order.SBuildServerAssert
containsOnlyProjects(String... projectIds)
Assert that server contains only projects with specified external ids in any order.SBuildServerAssert
containsProjects(String... projectIds)
Assert that server contains projects with specified external ids in any order.SBuildServerAssert
containsProjects(List<String> projectIds)
Assert that server contains projects with specified external ids in any order.SBuildServerAssert
containsTemplates(String... templateIds)
Assert that server contains build types with specified external ids in any order.SBuildServerAssert
containsUserGroups(String... names)
Assert that server contains user groups with specified namesSBuildServerAssert
containsUserGroupsOnly(String... names)
Assert that server contains only user groups with specified namesSBuildServerAssert
containsUserGroupsWithKeys(String... keys)
Assert that server contains user groups with specified keysSBuildServerAssert
containsUsers(String... userNames)
Assert that server contains users with specified usernamesSBuildServerAssert
containsUserWithUsernameAndPassword(String username, String password)
Assert that server contains user with specified login/passwordSBuildServerAssert
containsVcsRoots(String... vcsRootsIds)
Assert that server contains vcs roots with specified external ids in any order.SBuildServerAssert
doesNotContainBuildTypes(String... buildTypesIds)
Assert that server doesn't contain build types with specified external ids.SBuildServerAssert
doesNotContainProjects(String... projectIds)
Assert that server doesn't contain projects with specified external id.SBuildServerAssert
doesNotContainProjects(List<String> projectIds)
Assert that server doesn't contain projects with specified external id.SBuildServerAssert
doesNotContainTemplates(String... templateIds)
Assert that server doesn't contain templates with specified external ids.SBuildServerAssert
doesNotContainUserGroups(String... names)
Assert that server doesn't contain user groups with specified namesSBuildServerAssert
doesNotContainUserGroupsWithKeys(String... keys)
Assert that server doesn't contain user groups with specified keysSBuildServerAssert
doesNotContainUsers(String... userNames)
Assert that server doesn't contain users with specified usernamesSBuildServerAssert
doesNotContainVcsRoots(String... vcsRootsIds)
Assert that server doesn't contain vcs roots with specified external ids.SBuildServerAssert
doesNotHaveRegisteredAgent(int agentId)
ResponsibilityEntryAssert
doesNotHaveResponsibilityFor(SBuildType buildType)
SBuildServerAssert
doesNotHaveResponsibilityForTest(String testName, SProject project)
SBuildServerAssert
hasRegisteredAgentsCount(int expected)
Assert that server contains specified number of registered (possibly unauthorized) agents.ResponsibilityEntryAssert
hasResponsibilityFor(BuildProblem problem, SProject project)
ResponsibilityEntryAssert
hasResponsibilityFor(SBuildType buildType)
ResponsibilityEntryAssert
hasResponsibilityForTest(String testName, String projectExtId)
ResponsibilityEntryAssert
hasResponsibilityForTest(String testName, SProject project)
SBuildServerAssert
hasRunningBuildsCount(int expected)
SBuildServerAssert
hasUnregisteredAgentsCount(int expected)
Assert that server contains specified number of unregistered (possibly unauthorized) agents.SUserGroupAssert
rootUserGroupWithKey(String key)
SUserGroupAssert
userGroupWithKey(String key)
SUserAssert
userWithName(String userName)
-
Methods inherited from class org.assertj.core.api.AbstractAssert
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator
-
-
-
-
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
-
userWithName
public SUserAssert userWithName(String userName)
-
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
-
userGroupWithKey
public SUserGroupAssert userGroupWithKey(String key)
-
rootUserGroupWithKey
public SUserGroupAssert rootUserGroupWithKey(String key)
-
hasResponsibilityFor
public ResponsibilityEntryAssert hasResponsibilityFor(BuildProblem problem, SProject project)
-
hasResponsibilityFor
public ResponsibilityEntryAssert hasResponsibilityFor(SBuildType buildType)
-
doesNotHaveResponsibilityFor
public ResponsibilityEntryAssert doesNotHaveResponsibilityFor(SBuildType buildType)
-
hasResponsibilityForTest
public ResponsibilityEntryAssert hasResponsibilityForTest(String testName, SProject project)
-
hasResponsibilityForTest
public ResponsibilityEntryAssert hasResponsibilityForTest(String testName, String projectExtId)
-
doesNotHaveResponsibilityForTest
public SBuildServerAssert doesNotHaveResponsibilityForTest(String testName, SProject project)
-
-