Class CodeGenerationConfigurationWebServicesTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.couponwebservices.test.webservices.CodeGenerationConfigurationWebServicesTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
FieldsFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidthe test is for "/couponservices/v2/codegenerationconfiguration/list" This endpoint retrieves all the code generation configurations that are registered in the system defaultvoidvoidvoidvoidthe test is for "/couponservices/v2/codegenerationconfiguration/get/{codeGenerationConfigurationName}" This endpoint retrieves codeGenerationConfiguration for a given codeGenerationConfigurationNamevoidvoidvoidThe test should detect the fail with 1 error: errors" : [ { "message" : "No Code Generation Configuration found for name [INVALID_CODE_GENERATION_CONFIGURATION]", "reason" : "invalid", "subject" : "codeGenerationConfiguration", "type" : "CodeGenerationConfigurationNotFoundError" } ]Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
OAUTH_CLIENT_ID
- See Also:
-
OAUTH_CLIENT_PASS
- See Also:
-
-
Constructor Details
-
CodeGenerationConfigurationWebServicesTest
public CodeGenerationConfigurationWebServicesTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testGetCodeGenerationConfigurationsWithoutAuthorization
- Throws:
ImpExException
-
testGetCodeGenerationConfigurationsUsingClientCredentials
the test is for "/couponservices/v2/codegenerationconfiguration/list" This endpoint retrieves all the code generation configurations that are registered in the system default
- Parameters:
currentPage-fields-- Throws:
ImpExException
-
testGetCodeGenerationConfigurationWithoutAuthorization
- Throws:
ImpExException
-
testGetCodeGenerationConfigurationUsingClientCredentials
the test is for "/couponservices/v2/codegenerationconfiguration/get/{codeGenerationConfigurationName}" This endpoint retrieves codeGenerationConfiguration for a given codeGenerationConfigurationName
- Parameters:
codeGenerationConfigurationName-- Throws:
ImpExException
-
testInvalidCodeGenerationConfigurationNameError
The test should detect the fail with 1 error: errors" : [ { "message" : "No Code Generation Configuration found for name [INVALID_CODE_GENERATION_CONFIGURATION]", "reason" : "invalid", "subject" : "codeGenerationConfiguration", "type" : "CodeGenerationConfigurationNotFoundError" } ]- Throws:
ImpExException
-
testGetCodeGenerationConfigurationUsingWrongMediaType
- Throws:
ImpExException
-
testGetCodeGenerationConfigurationsUsingWrongMediaType
- Throws:
ImpExException
-
testGetCodeGenerationConfigurationsWhenNoConfigurationExists
- Throws:
ImpExException
-