Class SBuildTypeAssert

    • Method Detail

      • hasHistorySize

        public SBuildTypeAssert hasHistorySize​(int expectedHistorySize)
      • hasFullHistorySize

        public SBuildTypeAssert hasFullHistorySize​(int expectedHistorySize)
      • isBasedOn

        public SBuildTypeAssert isBasedOn​(BuildTypeTemplate template)
        Checks if a configuration is based on template. That does not include default template affecting the configuration.
      • hasVcsRootsContainingOnly

        public SBuildTypeAssert hasVcsRootsContainingOnly​(String... vcsRootExternalIds)
        Assert that BuildType has only vcsRoots with specified ids in any order.
      • hasVcsRootsContainingOnly

        public SBuildTypeAssert hasVcsRootsContainingOnly​(SVcsRoot... vcsRoots)
        Assert that BuildType contains only vcsRoots in any order.
      • hasNoVcsRoots

        public SBuildTypeAssert hasNoVcsRoots()
        Assert that BuildType doesn't have any vcs roots.
      • hasParametersContainingOnly

        public SBuildTypeAssert hasParametersContainingOnly​(org.assertj.core.data.MapEntry... expected)
      • hasOptionDefaultValue

        public <T> SBuildTypeAssert hasOptionDefaultValue​(Option<T> option,
                                                          T expected)
      • hasOnlyParameters

        public SBuildTypeAssert hasOnlyParameters​(int expectedNumOfOwnParams,
                                                  String... paramArray)
        Parameters:
        expectedNumOfOwnParams - expected number of parameters in build config own settings
        paramArray - odd elements are param names, even ones are expected values
      • hasRunnersOrder

        public SBuildTypeAssert hasRunnersOrder​(String... expectedRunnerIds)
        The assertion does not check runners content, just ids
        Parameters:
        expectedRunnerIds - expected runner ids
      • hasOnlyRunners

        public SBuildTypeAssert hasOnlyRunners​(String... paramArray)
        The assertion checks runner ids and values of a parameter named 'p' (representing the content of a runner)
        Parameters:
        paramArray - odd elements are runner ids, even ones are expected values of the param 'p' these runners
      • hasOnlyTriggers

        public SBuildTypeAssert hasOnlyTriggers​(String... paramArray)
        Parameters:
        paramArray - odd elements are trigger ids, even ones are expected values of the param 'p' for these triggers
      • hasOnlyBuildFeatures

        public SBuildTypeAssert hasOnlyBuildFeatures​(String... paramArray)
        Parameters:
        paramArray - odd elements are build feature ids, even ones are expected values of the param 'p' for these features
      • hasOnlyRequirements

        public SBuildTypeAssert hasOnlyRequirements​(String... paramArray)
        Parameters:
        paramArray - odd elements are requirement ids, even ones are expected parameter values in these requirements
      • hasOnlyArtifactDependencies

        public SBuildTypeAssert hasOnlyArtifactDependencies​(String... pathsArray)
        Parameters:
        pathsArray - odd elements are artifact dep. ids, even ones are expected source path values for these dependencies
      • hasOnlySnapshotDependencies

        public SBuildTypeAssert hasOnlySnapshotDependencies​(String... pathsArray)
        Parameters:
        pathsArray - odd elements are snapshot dep. source build config ids, even ones are expected values of TAKE_SUCCESSFUL_BUILDS_ONLY option for these dependencies (as string, "true" or "false")
      • hasOnlyVcsRoots

        public SBuildTypeAssert hasOnlyVcsRoots​(String... rulesArray)
        Parameters:
        rulesArray - odd elements are vcs root ids, even ones are expected checkout rules for these roots