Class IntegrationObjectItemModelBuilder
java.lang.Object
org.junit.rules.ExternalResource
de.hybris.platform.integrationservices.IntegrationObjectItemModelBuilder
- All Implemented Interfaces:
org.junit.rules.TestRule
public class IntegrationObjectItemModelBuilder
extends org.junit.rules.ExternalResource
Integration object item builder to build an
IntegrationObjectItemModel.-
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()protected voidbefore()build()Builds the Impex header for this builder's IntegrationObjectItem.buildItemImpexHeader(Collection<String> excludedValidators) Builds the Impex header for this builder's IntegrationObjectItem.voidcleanup()integrationObjectItem(String code) root()withExcludedValidators(Collection<String> excludedValidators) Sets the list of excluded validators for the impex executionwithIntegrationObjectCode(String ioCode) withRoot(boolean value) withTypeMatch(ItemTypeMatch match) Methods inherited from class org.junit.rules.ExternalResource
apply
-
Method Details
-
integrationObjectItem
-
integrationObjectItem
-
withCode
-
withIntegrationObject
-
withIntegrationObjectCode
-
withType
-
withTypeMatch
-
root
-
withRoot
-
withAttribute
public IntegrationObjectItemModelBuilder withAttribute(IntegrationObjectItemAttributeModelBuilder attr) -
withAttribute
public IntegrationObjectItemModelBuilder withAttribute(IntegrationObjectItemClassificationAttributeBuilder attr) -
withExcludedValidators
public IntegrationObjectItemModelBuilder withExcludedValidators(Collection<String> excludedValidators) Sets the list of excluded validators for the impex execution- Parameters:
excludedValidators- a collection of strings with the bean names of the validators that we want to exclude from the impex execution- Returns:
- an instance of IntegrationObjectItemModelBuilder with the excluded validators list defined
-
build
-
buildClassImpexHeader
Builds the Impex header for this builder's IntegrationObjectItem.- Returns:
- the Impex header for this builder's IntegrationObjectItem.
-
buildItemImpexHeader
Builds the Impex header for this builder's IntegrationObjectItem.- Parameters:
excludedValidators- containing a collection of validator bean names that we want to exclude in the impex execution- Returns:
- the Impex header for this builder's IntegrationObjectItem.
-
buildImpexLine
-
buildAttributeLines
-
buildClassificationAttributeLines
-
cleanup
public void cleanup() -
before
- Overrides:
beforein classorg.junit.rules.ExternalResource- Throws:
ImpExException
-
after
protected void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-