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 SBuildServerAssertcontainsBuildTypes(String... buildTypesIds)Assert that server contains build types with specified external ids in any order.SBuildServerAssertcontainsOnlyProjects(String... projectIds)Assert that server contains only projects with specified external ids in any order.SBuildServerAssertcontainsProjects(String... projectIds)Assert that server contains projects with specified external ids in any order.SBuildServerAssertcontainsProjects(List<String> projectIds)Assert that server contains projects with specified external ids in any order.SBuildServerAssertcontainsTemplates(String... templateIds)Assert that server contains build types with specified external ids in any order.SBuildServerAssertcontainsUserGroups(String... names)Assert that server contains user groups with specified namesSBuildServerAssertcontainsUserGroupsOnly(String... names)Assert that server contains only user groups with specified namesSBuildServerAssertcontainsUserGroupsWithKeys(String... keys)Assert that server contains user groups with specified keysSBuildServerAssertcontainsUsers(String... userNames)Assert that server contains users with specified usernamesSBuildServerAssertcontainsUserWithUsernameAndPassword(String username, String password)Assert that server contains user with specified login/passwordSBuildServerAssertcontainsVcsRoots(String... vcsRootsIds)Assert that server contains vcs roots with specified external ids in any order.SBuildServerAssertdoesNotContainBuildTypes(String... buildTypesIds)Assert that server doesn't contain build types with specified external ids.SBuildServerAssertdoesNotContainProjects(String... projectIds)Assert that server doesn't contain projects with specified external id.SBuildServerAssertdoesNotContainProjects(List<String> projectIds)Assert that server doesn't contain projects with specified external id.SBuildServerAssertdoesNotContainTemplates(String... templateIds)Assert that server doesn't contain templates with specified external ids.SBuildServerAssertdoesNotContainUserGroups(String... names)Assert that server doesn't contain user groups with specified namesSBuildServerAssertdoesNotContainUserGroupsWithKeys(String... keys)Assert that server doesn't contain user groups with specified keysSBuildServerAssertdoesNotContainUsers(String... userNames)Assert that server doesn't contain users with specified usernamesSBuildServerAssertdoesNotContainVcsRoots(String... vcsRootsIds)Assert that server doesn't contain vcs roots with specified external ids.SBuildServerAssertdoesNotHaveRegisteredAgent(int agentId)ResponsibilityEntryAssertdoesNotHaveResponsibilityFor(SBuildType buildType)SBuildServerAssertdoesNotHaveResponsibilityForTest(String testName, SProject project)SBuildServerAsserthasRegisteredAgentsCount(int expected)Assert that server contains specified number of registered (possibly unauthorized) agents.ResponsibilityEntryAsserthasResponsibilityFor(BuildProblem problem, SProject project)ResponsibilityEntryAsserthasResponsibilityFor(SBuildType buildType)ResponsibilityEntryAsserthasResponsibilityForTest(String testName, String projectExtId)ResponsibilityEntryAsserthasResponsibilityForTest(String testName, SProject project)SBuildServerAsserthasRunningBuildsCount(int expected)SBuildServerAsserthasUnregisteredAgentsCount(int expected)Assert that server contains specified number of unregistered (possibly unauthorized) agents.SUserGroupAssertrootUserGroupWithKey(String key)SUserGroupAssertuserGroupWithKey(String key)SUserAssertuserWithName(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)
-
-