Enum TestRailParametersFactoryImpl
java.lang.Object
java.lang.Enum<TestRailParametersFactoryImpl>
io.jenkins.plugins.railflow.jenkins.testresults.TestRailParametersFactoryImpl
- All Implemented Interfaces:
TestRailParametersFactory
,Serializable
,Comparable<TestRailParametersFactoryImpl>
public enum TestRailParametersFactoryImpl
extends Enum<TestRailParametersFactoryImpl>
implements TestRailParametersFactory
Default implementation of
TestRailParametersFactory
.- Author:
- Sergey Oplavin
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(GlobalConfig globalConfig, String testRailServerName, String overriddenUserName, Secret overriddenPassword) Create newTestRailParameters
object.Returns the enum constant of this type with the specified name.static TestRailParametersFactoryImpl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
THE_INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public TestRailParameters create(GlobalConfig globalConfig, String testRailServerName, String overriddenUserName, Secret overriddenPassword) Description copied from interface:TestRailParametersFactory
Create newTestRailParameters
object.- Specified by:
create
in interfaceTestRailParametersFactory
- Parameters:
globalConfig
- global configuration.testRailServerName
- name of a TR server.overriddenUserName
- usernameoverriddenPassword
- password- Returns:
- an instance of
TestRailParameters
, implementations must never return null.
-