TestProfiles

interface TestProfiles(source)

A collection of TestConfigs grouped by environment and profile name.

I.e. a data structure which maps profile names to TestConfig per environment.

Since

2.0.0

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract operator fun contains(profileName: String): Boolean

Indicates if the given profileName is part of this collection or not.

Link copied to clipboard
operator fun TestProfiles.contains(testType: TestType): Boolean

Indicates if the given testType is used as profile name in this TestProfiles collection or not.

Link copied to clipboard
abstract fun envs(profileName: String): Set<String>

Returns all specified environments for the given profileName and throws in case the profile name is not specified in this collection.

Link copied to clipboard
abstract fun find(profileName: String, env: String): TestConfig?

Returns the TestConfig of the given profileName and env or null in case the profile or environment does not exist.

Link copied to clipboard
abstract fun get(profileName: String, env: String): TestConfig

Returns the TestConfig of the given profileName and env.

Link copied to clipboard
abstract fun profileNames(): Set<String>

Returns all specified profile names.

Link copied to clipboard

Returns a copy of this collection as a MutableList where the Pair.first are the profile names and Pair.second is again a MutableList where Pair.first are the envs and Pair.second the associated TestConfig.