Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28376

Create test annotation to control Framework properties

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF20, 11.1, 2021.0
    • Component/s: Tests
    • Release Notes Description:
      Hide

      You can now set Nuxeo Framework's property for a specific test through a java annotation.
      This annotation is @WithFrameworkProperties, you can see its usage below:

      @Test
      @WithFrameworkProperties(name = "mail.debug", value = "true")
      public void test() {
          assertEquals("true", Framework.getProperty("mail.debug"));
      }
      
      Show
      You can now set Nuxeo Framework's property for a specific test through a java annotation. This annotation is @WithFrameworkProperties , you can see its usage below: @Test @WithFrameworkProperties(name = "mail.debug" , value = " true " ) public void test() { assertEquals( " true " , Framework.getProperty( "mail.debug" )); }
    • Team:
      PLATFORM
    • Sprint:
      nxplatform 11.1.24
    • Story Points:
      2

      Description

      We want to introduce a new annotation to the test framework to ease testing part of Nuxeo Platform leveraging Framework properties.

      Annotation will accept a key and a String value, for instance:

      @WithFrameworkProperty(name = "mail.debug", value = "true")
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h