Annotation Type UnitTest


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Scope("prototype")
    @Component
    @Deprecated
    public @interface UnitTest
    Deprecated.
    Please use xUnit's UnitTest instead.
    UnitTest enables a simple unit test to use the tapir API. It is just a convenience annotation. Classes annotated by this annotation are automatically annotated by:
     
     @SpringBootTest
     @RunWith(value = SpringRunner.class)
      
    Since:
    3.0.0
    Author:
    Oliver Libutzki <[email protected]>
    See Also:
    SpringBootTest, SpringRunner
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] value
      Deprecated.
      Properties in form key=value that should be added to the Spring Environment before the test runs.
    • Element Detail

      • value

        java.lang.String[] value
        Deprecated.
        Properties in form key=value that should be added to the Spring Environment before the test runs.
        Returns:
        the properties to add
        Default:
        {}