Class CodeGenerationConfigurationWebServicesTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class CodeGenerationConfigurationWebServicesTest extends ServicelayerTest
  • Field Details

  • Constructor Details

    • CodeGenerationConfigurationWebServicesTest

      public CodeGenerationConfigurationWebServicesTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • testGetCodeGenerationConfigurationsWithoutAuthorization

      public void testGetCodeGenerationConfigurationsWithoutAuthorization() throws ImpExException
      Throws:
      ImpExException
    • testGetCodeGenerationConfigurationsUsingClientCredentials

      public void testGetCodeGenerationConfigurationsUsingClientCredentials() throws ImpExException

      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

      public void testGetCodeGenerationConfigurationWithoutAuthorization() throws ImpExException
      Throws:
      ImpExException
    • testGetCodeGenerationConfigurationUsingClientCredentials

      public void testGetCodeGenerationConfigurationUsingClientCredentials() throws ImpExException

      the test is for "/couponservices/v2/codegenerationconfiguration/get/{codeGenerationConfigurationName}" This endpoint retrieves codeGenerationConfiguration for a given codeGenerationConfigurationName

      Parameters:
      codeGenerationConfigurationName -
      Throws:
      ImpExException
    • testInvalidCodeGenerationConfigurationNameError

      public void testInvalidCodeGenerationConfigurationNameError() throws ImpExException
      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

      public void testGetCodeGenerationConfigurationUsingWrongMediaType() throws ImpExException
      Throws:
      ImpExException
    • testGetCodeGenerationConfigurationsUsingWrongMediaType

      public void testGetCodeGenerationConfigurationsUsingWrongMediaType() throws ImpExException
      Throws:
      ImpExException
    • testGetCodeGenerationConfigurationsWhenNoConfigurationExists

      public void testGetCodeGenerationConfigurationsWhenNoConfigurationExists() throws ImpExException
      Throws:
      ImpExException