Skip to content

Provided Spring Application Context

Florian edited this page Jul 2, 2014 · 2 revisions

Table of Contents

Provided Test Application Context

Test extension provide a set of application context definition that can be used for project test set up.

single_applicationContext.xml

Provided: since 1.0. Deprecated

Needed Properties Files: jdbc.properties, flyway.properties

Source: simpleApplicationContext.xml Source.

A small application context which contain complete test setup.

flywayPropertiesContext.xml

Provided: since 2.1

Needed Properties Files: flyway.properties

Source: flywayPropertiesContext.xml Source.

A small application context which contain complete test setup using only values that are also supported from Flyway (see flyway.properties)

dataSourceSingleContext.xml

Provided: since 2.1

Needed Properties Files: flyway.properties

Source: dataSourceSingleContext.xml Source.

A helper context to define data source definition for a flyway test setup. For data source definition apache dbcp !BasicDataSource will be used. The bean will be defined with name 'dataSource' and id 'dataSourceRef'.

flywaySingleContext.xml

Provided: since 2.1

Needed Properties Files: flyway.properties

Source: flywaySingleContext.xml Source.

A helper context which provide a instance of Flyway. The bean definition of the bean needs a data source bean that can be found with id 'dataSourceRef' The flyway bean have the id 'flyway'.

flywayContainerContext.xml

Provided: since 2.1

Needed Properties Files: flyway.properties

Source: flywayContainerContext.xml Source

A small application context which contain complete test setup using only values that are also supported from Flyway (see flyway.properties). This context import the context flywaySingleContext.xml and dataSourceSingleContext.xml