Package org.springframework.boot.test

Classes and utilities that are useful when unit-testing Spring Boot applications.

See: Description

  • Class Summary 
    Class Description
    ConfigFileApplicationContextInitializer
    ApplicationContextInitializer that can be used with the ContextConfiguration.initializers() to trigger loading of application.properties.
    EnvironmentTestUtils
    Test utilities for setting environment values.
    OutputCapture
    JUnit @Rule to capture output from System.out and System.err.
    SpringApplicationContextLoader
    A ContextLoader that can be used to test Spring Boot applications (those that normally startup using SpringApplication).
    TestRestTemplate
    Convenient subclass of RestTemplate that is suitable for integration tests.
  • Annotation Types Summary 
    Annotation Type Description
    IntegrationTest
    Test class annotation signifying that the tests are integration tests (and therefore require an application to startup "fully leaded" and listening on its normal ports).
    SpringApplicationConfiguration
    Class-level annotation that is used to determine how to load and configure an ApplicationContext for integration tests.

Package org.springframework.boot.test Description

Classes and utilities that are useful when unit-testing Spring Boot applications. This package is only intended for use in 'src/test' and should not be used in your 'src/main' code.

Copyright © 2014 Pivotal Software, Inc.. All rights reserved.