Class ConsumedDestinationBuilder
java.lang.Object
org.junit.rules.ExternalResource
de.hybris.platform.outboundservices.ConsumedDestinationBuilder
- All Implemented Interfaces:
org.junit.rules.TestRule
public class ConsumedDestinationBuilder
extends org.junit.rules.ExternalResource
Consumed destination builder to build a
ConsumedDestinationModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()protected voidbefore()build()static voidcleanup()Deprecated, for removal: This API element is subject to removal in a future version.static ConsumedDestinationBuildervoidreset()withAdditionalParameters(Map<String, String> params) Specifies additional parameters to be added to the consumed destination.withCredential(AbstractCredentialModel credential) withCredential(AbstractCredentialBuilder<?, ?> builder) withDestinationTarget(DestinationTargetModel destination) withEndpoint(EndpointModel endpoint) withEndpoint(EndpointBuilder builder) Methods inherited from class org.junit.rules.ExternalResource
apply
-
Constructor Details
-
ConsumedDestinationBuilder
public ConsumedDestinationBuilder()
-
-
Method Details
-
consumedDestinationBuilder
-
withId
-
withUrl
-
withEndpoint
-
withEndpoint
-
withCredential
-
withCredential
-
withDestinationTarget
-
withDestinationTarget
-
withDestinationTarget
-
withAdditionalParameters
Specifies additional parameters to be added to the consumed destination. Subsequent calls to this method do not reset the parameters previously specified.- Parameters:
params- the parameter map.- Returns:
- a builder with the parameters specified.
-
build
-
before
- Overrides:
beforein classorg.junit.rules.ExternalResource- Throws:
ImpExException
-
after
protected void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-
reset
public void reset() -
cleanup
Deprecated, for removal: This API element is subject to removal in a future version.Unconditionally cleans all ConsumedDestinationModel, EndpointModel, BasicCredentialModel, ExposedOAuthCredentialModel, ConsumedOAuthCredentialModel, OAuthClientDetailsModel, and DestinationTargetModel items. NOTE: this may be dangerous as it may wipe out essential data of other extension.
-
) method to clean all items created by this builder.