Annotation Type SpringBootTest

    • Element Detail

      • properties

        @AliasFor("value")
        String[] properties
        Properties in form key=value that should be added to the Spring Environment before the test runs.
        Returns:
        the properties to add
        Default:
        {}
      • classes

        Class<?>[] classes
        The annotated classes to use for loading an ApplicationContext. Can also be specified using @ContextConfiguration(classes=...). If no explicit classes are defined the test will look for nested @Configuration classes, before falling back to a SpringBootConfiguration search.
        Returns:
        the annotated classes used to load the application context
        See Also:
        ContextConfiguration.classes()
        Default:
        {}