Class TmaServiceTestDataSetup
- java.lang.Object
-
- de.hybris.platform.b2ctelcoservices.services.TmaServiceTestDataSetup
-
public abstract class TmaServiceTestDataSetup extends java.lang.ObjectSetup class for generating test data related to the Service functionality.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNOT_EXISTING_PARENT_PRODUCT_OFFERINGstatic java.lang.StringNOT_EXISTING_PRODUCT_CODEstatic java.lang.StringNOT_EXISTING_SUBSCRIBER_IDstatic java.lang.StringTEST_BILLING_FREQUENCYstatic java.lang.StringTEST_BILLING_SUBSCRIPTION_IDstatic java.lang.StringTEST_BILLING_SYSTEM_IDstatic booleanTEST_CANCELLABLE_FLAGstatic intTEST_CONTRACT_DURATIONstatic java.lang.StringTEST_CONTRACT_FREQUENCYstatic java.lang.StringTEST_CREATE_BILLING_SUBSCRIPTION_IDstatic java.text.SimpleDateFormatTEST_DATE_FORMATstatic java.lang.StringTEST_END_DATEstatic java.lang.StringTEST_IDstatic java.lang.StringTEST_NAMEstatic java.lang.StringTEST_PARENT_PO_CODEstatic java.lang.StringTEST_PAYMENT_IDstatic java.lang.StringTEST_PRODUCT_CODEstatic java.lang.StringTEST_RENEWAL_TYPEstatic TmaServiceTypeDataTEST_SERVICE_TYPE_DATAstatic TmaServiceTypeTEST_SERVICE_TYPE_MODELstatic java.lang.StringTEST_START_DATEstatic java.lang.StringTEST_SUBSCRIBER_IDstatic SubscriptionStatusTEST_SUBSCRIPTION_STATUS
-
Constructor Summary
Constructors Constructor Description TmaServiceTestDataSetup()
-
Method Summary
-
-
-
Field Detail
-
TEST_ID
public static final java.lang.String TEST_ID
- See Also:
- Constant Field Values
-
TEST_NAME
public static final java.lang.String TEST_NAME
- See Also:
- Constant Field Values
-
TEST_PRODUCT_CODE
public static final java.lang.String TEST_PRODUCT_CODE
- See Also:
- Constant Field Values
-
TEST_SERVICE_TYPE_DATA
public static final TmaServiceTypeData TEST_SERVICE_TYPE_DATA
-
TEST_SERVICE_TYPE_MODEL
public static final TmaServiceType TEST_SERVICE_TYPE_MODEL
-
TEST_CREATE_BILLING_SUBSCRIPTION_ID
public static final java.lang.String TEST_CREATE_BILLING_SUBSCRIPTION_ID
- See Also:
- Constant Field Values
-
TEST_BILLING_SUBSCRIPTION_ID
public static final java.lang.String TEST_BILLING_SUBSCRIPTION_ID
- See Also:
- Constant Field Values
-
TEST_SUBSCRIPTION_STATUS
public static final SubscriptionStatus TEST_SUBSCRIPTION_STATUS
-
TEST_DATE_FORMAT
public static final java.text.SimpleDateFormat TEST_DATE_FORMAT
-
TEST_START_DATE
public static final java.lang.String TEST_START_DATE
- See Also:
- Constant Field Values
-
TEST_END_DATE
public static final java.lang.String TEST_END_DATE
- See Also:
- Constant Field Values
-
TEST_RENEWAL_TYPE
public static final java.lang.String TEST_RENEWAL_TYPE
- See Also:
- Constant Field Values
-
TEST_CANCELLABLE_FLAG
public static final boolean TEST_CANCELLABLE_FLAG
- See Also:
- Constant Field Values
-
TEST_BILLING_FREQUENCY
public static final java.lang.String TEST_BILLING_FREQUENCY
- See Also:
- Constant Field Values
-
TEST_CONTRACT_DURATION
public static final int TEST_CONTRACT_DURATION
- See Also:
- Constant Field Values
-
TEST_CONTRACT_FREQUENCY
public static final java.lang.String TEST_CONTRACT_FREQUENCY
- See Also:
- Constant Field Values
-
NOT_EXISTING_SUBSCRIBER_ID
public static final java.lang.String NOT_EXISTING_SUBSCRIBER_ID
- See Also:
- Constant Field Values
-
TEST_SUBSCRIBER_ID
public static final java.lang.String TEST_SUBSCRIBER_ID
- See Also:
- Constant Field Values
-
TEST_BILLING_SYSTEM_ID
public static final java.lang.String TEST_BILLING_SYSTEM_ID
- See Also:
- Constant Field Values
-
TEST_PARENT_PO_CODE
public static final java.lang.String TEST_PARENT_PO_CODE
- See Also:
- Constant Field Values
-
NOT_EXISTING_PARENT_PRODUCT_OFFERING
public static final java.lang.String NOT_EXISTING_PARENT_PRODUCT_OFFERING
- See Also:
- Constant Field Values
-
NOT_EXISTING_PRODUCT_CODE
public static final java.lang.String NOT_EXISTING_PRODUCT_CODE
- See Also:
- Constant Field Values
-
TEST_PAYMENT_ID
public static final java.lang.String TEST_PAYMENT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateTmaSubscribedProductData
public static TmaSubscribedProductData generateTmaSubscribedProductData(java.lang.String billingSystemId, java.lang.String billingSubscriptionId, java.lang.String parentProductOffering) throws java.text.ParseException
- Throws:
java.text.ParseException
-
generateRandomTmaSubscribedProductData
public static TmaSubscribedProductData generateRandomTmaSubscribedProductData(java.lang.String billingSystemId, java.lang.String billingSubscriptionId) throws java.text.ParseException
- Throws:
java.text.ParseException
-
generateTmaSubscribedProductModelForSubscriptionBase
public static TmaSubscribedProductModel generateTmaSubscribedProductModelForSubscriptionBase(TmaSubscribedProductModel subscribedProductModel, TmaSubscriptionBaseModel subscriptionBaseModel) throws java.text.ParseException
- Throws:
java.text.ParseException
-
generateTmaSubscribedProductModelForProductOffering
public static TmaSubscribedProductModel generateTmaSubscribedProductModelForProductOffering(TmaSubscribedProductModel subscribedProductModel, TmaProductOfferingModel productOfferingModel, TmaSubscriptionBaseModel subscriptionBaseModel) throws java.text.ParseException
- Throws:
java.text.ParseException
-
assertTmaSubscribedProductModelsPopulatedWithDefaultValues
public static void assertTmaSubscribedProductModelsPopulatedWithDefaultValues(TmaSubscribedProductModel target, TmaSubscriptionBaseModel subscriptionBaseModel) throws java.text.ParseException
- Throws:
java.text.ParseException
-
assertTmaSubscribedProductModelsPopulatedWithCommonDefaultValues
public static void assertTmaSubscribedProductModelsPopulatedWithCommonDefaultValues(TmaSubscribedProductModel target) throws java.text.ParseException
- Throws:
java.text.ParseException
-
assertTmaSubscribedProductDataIsPopulatedWithDefaultValues
public static void assertTmaSubscribedProductDataIsPopulatedWithDefaultValues(TmaSubscribedProductData subscribedProductData) throws java.text.ParseException
- Throws:
java.text.ParseException
-
assertTmaSubscribedProductDataIsPopulatedWithDefaultValuesForPO
public static void assertTmaSubscribedProductDataIsPopulatedWithDefaultValuesForPO(TmaSubscribedProductData subscribedProductData) throws java.text.ParseException
- Throws:
java.text.ParseException
-
assertTmaSubscribedProductDataIsPopulatedWithCommonDefaultValues
public static void assertTmaSubscribedProductDataIsPopulatedWithCommonDefaultValues(TmaSubscribedProductData subscribedProductData) throws java.text.ParseException
- Throws:
java.text.ParseException
-
assertSubscribedProductIsUpdated
public static void assertSubscribedProductIsUpdated(TmaSubscribedProductData dataForUpdate, TmaSubscribedProductData updated)
-
assertTmaSubscribedProductModelsPopulatedWithDefaultValuesForPO
public static void assertTmaSubscribedProductModelsPopulatedWithDefaultValuesForPO(TmaSubscribedProductModel target, TmaProductOfferingModel productOfferingModel) throws java.text.ParseException
- Throws:
java.text.ParseException
-
createSubscriptionBaseForIdentity
public static TmaSubscriptionBaseModel createSubscriptionBaseForIdentity(java.lang.String subscriberIdentity, java.lang.String billingSystemId)
-
createParentProductOffering
public static TmaProductOfferingModel createParentProductOffering()
-
-