Interface TestResourcesPropertyProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TestResourcesPropertyProvider
A test resources property provider is a type which must be explicitly declared in via the TestResourcesProperties annotation.

It is responsible for supplying additional test properties, given the set of properties which are available before the application context is started.

It can be used, in particular, to derive new properties from other properties resolved by the test resources client.

This works in a very similar way as TestPropertyProvider, but has access to other properties in order to perform computation based on the value of these properties.

  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Map<String,String>
    provide(@NonNull Map<String,Object> testProperties)
    Returns a map of properties which need to be exposed to the application context, given the map of properties which are already available during setup.
  • Method Details

    • provide

      @NonNull @NonNull Map<String,String> provide(@NonNull @NonNull Map<String,Object> testProperties)
      Returns a map of properties which need to be exposed to the application context, given the map of properties which are already available during setup. These properties typically include the properties visible in the configuration files which do not require access to test resources.
      Parameters:
      testProperties - the set of properties available
      Returns:
      a map of properties to be added