Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2743

Add missing httpclient validator unit test

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • GreenHopper Ranking:
      0|i2xs5v:
    • 9223372036854775807
    • Small

    Description

      Description

      httpclient validator has no unit test. 

      This ticket aim to cover http client validator.

      Scope evolution

      During unit test work, a bug has been found: the annotation "Request" is defined to work on Method but only class were evaluated by validator.
      It has been fixed during the task.

       

      Coverage evolution

      The following test have been added:

      • validateClassExtendWrongCLass
        • Vaidate that a class that do not extend anything end up in failure
      •  validateClassDoNotExtendHttpClient
        • Vaidate that a class that do not extend HttpClient end up in failure
      • validateClassMethodMissingAnnotation
        • Vaidate that a class that extend HttpClient but is missing annotation @Request on a method end up in failure
      • validateClassMethodWithOtherAnnotation
        • Validate that a class that extend HttpClient but use other annotation but not @Request on a method end up in failure
      • validateWrongClientNoMethodRequest
        • Validate that a class that extend HttpClient but no methods use @Request end up in failure
      • validateClassOK
        • Vaidate that a class extending HttpClient with annotation @Request on all method end up in success

       

      Attachments

        Activity

          People

            acatoire Axel Catoire
            emmanuel_g emmanuel gallois
            Axel Catoire, Yueyan Yin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: