Class RuntimeAttributeDescriptorBuilder
java.lang.Object
org.junit.rules.ExternalResource
de.hybris.platform.integrationservices.util.RuntimeAttributeDescriptorBuilder
- All Implemented Interfaces:
org.junit.rules.TestRule
public class RuntimeAttributeDescriptorBuilder
extends org.junit.rules.ExternalResource
Utility class to build Runtime
AttributeDescriptorModel for testing purposes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()Creates a new instance ofRuntimeAttributeDescriptorBuilderprotected voidbefore()voidcleanup()Handles clean up for the createdAttributeDescriptorModel.voidsetup()Setups the definedAttributeDescriptorModelvia Impex.withAttributeType(String code) withEnclosingType(String code) withGenerate(boolean generate) withLocalized(boolean localized) withOptional(boolean optional) withPartOf(boolean partOf) withQualifier(String qualifier) withUnique(boolean unique) Methods inherited from class org.junit.rules.ExternalResource
apply
-
Constructor Details
-
RuntimeAttributeDescriptorBuilder
public RuntimeAttributeDescriptorBuilder()
-
-
Method Details
-
attributeDescriptor
Creates a new instance ofRuntimeAttributeDescriptorBuilder- Returns:
- instance of the builder,
-
withQualifier
-
withEnclosingType
-
withAttributeType
-
withUnique
-
withOptional
-
withLocalized
-
withPartOf
-
withGenerate
-
before
- Overrides:
beforein classorg.junit.rules.ExternalResource- Throws:
ImpExException
-
after
protected void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-
setup
Setups the definedAttributeDescriptorModelvia Impex.- Throws:
ImpExException
-
cleanup
public void cleanup()Handles clean up for the createdAttributeDescriptorModel.
-