public static final class ForEachSystemRule.FluentHelper extends Object
ForEachSystemRule
.
This class stores one set of systems that should be used one ofter another.
Modifier and Type | Method and Description |
---|---|
ForEachSystemRule.FluentHelper |
andSystem(String systemAlias)
Finishes the configuration of the current system and start configuration of the next one.
|
ForEachSystemRule |
usingDestination(String destinationName)
All system configurations since the last call to a
using... method will be used to resolve the given
destination name. |
ForEachSystemRule |
usingErpDestination(String destinationName)
All system configurations since the last call to a
using... method will be used to resolve the
default ERP destination. |
ForEachSystemRule |
usingRfcDestination(String destinationName)
All system configurations since the last call to a
using... method will be used to resolve the
default ERP destination. |
ForEachSystemRule.FluentHelper |
withFallbackSystem(String fallbackSystemAlias)
Specifies a system aliases that should be used after the primary system failed for whatever reason.
|
ForEachSystemRule.FluentHelper |
withFallbackSystems(String... fallbackSystemAliases)
Specifies a list of system aliases that should be used (in order) after the primary system failed for
whatever reason.
|
ForEachSystemRule.FluentHelper |
withSystem(String systemAlias)
Finishes the configuration of the current system and start configuration of the next one.
|
@Nonnull public ForEachSystemRule.FluentHelper andSystem(@Nonnull String systemAlias)
With the next using...
call on the returned FluentHelper
, systems configured since the last
using...
call will be used for the then specified destination.
systemAlias
- The alias of the next system to configure.FluentHelper
to configure the next system.@Nonnull public ForEachSystemRule.FluentHelper withSystem(@Nonnull String systemAlias)
With the next using...
call on the returned FluentHelper
, systems configured since the last
using...
call will be used for the then specified destination.
This method directly calls andSystem(String)
and just exists for backwards compatibility.
systemAlias
- The alias of the next system to configure.FluentHelper
to configure the next system.@Nonnull public ForEachSystemRule.FluentHelper withFallbackSystem(@Nonnull String fallbackSystemAlias)
fallbackSystemAlias
- The system alias to use as fallback.FluentHelper
.@Nonnull public ForEachSystemRule.FluentHelper withFallbackSystems(@Nonnull String... fallbackSystemAliases)
fallbackSystemAliases
- The system aliases to use as fallback.FluentHelper
.@Nonnull public ForEachSystemRule usingDestination(@Nonnull String destinationName)
using...
method will be used to resolve the given
destination name.
The test methods in the test class where the ForEachSystemRule
is created will be called once for
each system configuration.
A system configuration contains the "primary" (specified via ForEachSystemRule.withSystem(String)
or
andSystem(String)
) system as well as an optional list of "fallback" systems (specified via
withFallbackSystems(String...)
).
destinationName
- The name of the destination to use the systems for.ForEachSystemRule
.@Nonnull public ForEachSystemRule usingErpDestination(@Nonnull String destinationName)
using...
method will be used to resolve the
default ERP destination.
The test methods in the test class where the ForEachSystemRule
is created will be called once for
each system configuration.
A system configuration contains the "primary" (specified via ForEachSystemRule.withSystem(String)
or
andSystem(String)
) system as well as an optional list of "fallback" systems (specified via
withFallbackSystems(String...)
).
destinationName
- The name of the destination to use the systems for.ForEachSystemRule
.@Nonnull public ForEachSystemRule usingRfcDestination(@Nonnull String destinationName)
using...
method will be used to resolve the
default ERP destination.
The test methods in the test class where the ForEachSystemRule
is created will be called once for
each system configuration.
A system configuration contains the "primary" (specified via ForEachSystemRule.withSystem(String)
or
andSystem(String)
) system as well as an optional list of "fallback" systems (specified via
withFallbackSystems(String...)
).
destinationName
- The name of the destination to use the systems for.ForEachSystemRule
.Copyright © 2019 SAP SE. All rights reserved.