Class RegionModelBuilder
java.lang.Object
de.hybris.platform.warehousing.util.builder.RegionModelBuilder
Builder class to build a
RegionModel for testing purposes.-
Method Summary
Modifier and TypeMethodDescriptionstatic RegionModelBuilderaModel()Builds aRegionModelBuilder.build()Builds a newRegionModel.withCountry(CountryModel country) Adds aCountryModelto theRegionModel.withIsocode(String isocode) Adds an isocode to theRegionModel.withIsocodeShort(String isocodeShort) Adds a the short isocode to theRegionModel.Adds a name to theRegionModel.
-
Method Details
-
aModel
Builds aRegionModelBuilder.- Returns:
- the newly created
RegionModelBuilder
-
build
Builds a newRegionModel.- Returns:
- the
RegionModel
-
withCountry
Adds aCountryModelto theRegionModel.- Parameters:
country- theRegionModel.COUNTRY- Returns:
- the modifier
RegionModel
-
withIsocodeShort
Adds a the short isocode to theRegionModel.- Parameters:
isocodeShort- theRegionModel.ISOCODESHORT- Returns:
- the modifier
RegionModel
-
withIsocode
Adds an isocode to theRegionModel.- Parameters:
isocode- theC2LItemModel.ISOCODE- Returns:
- the modifier
RegionModel
-
withName
Adds a name to theRegionModel.- Parameters:
name- theC2LItemModel.NAME- Returns:
- the modifier
RegionModel
-