This project is built with Gradle. After installing the pre-requisites, run:
./gradlew
Building Behind a Proxy
Since this project downloads its dependencies from the internet, building behing a proxy requires some extra effort. In order configure gradle properly, use the following system properties. More information can be found here.
Each test application contains a manifest.yml file which allows the built application to be deployed to Cloud Foundry by simply issuing:
cf push
To avoid clashing with the URLs of other applications, you should specify your own subdomain for the application (unless the test application does not need a subdomain).
Failure Testing
Failure testing is supported for each of the above applications by setting a suitable environment variable.
If the environment variable FAIL_INIT is set, the application will fail to initialize:
cf set-env <application name> FAIL_INIT true
If the environment variable FAIL_OOM is set, the application will repeatedly exhaust the heap until the JVM is killed:
cf set-env <application name> FAIL_OOM true
Running Tests
To run the tests, do the following:
./gradlew
License
The Tomcat Builder is released under version 2.0 of the Apache License.
Java Test Applications
A collection of applications used for testing the Java buildpack.
Applications
dist-zip-applicationdistZipejb-applicationgroovy-applicationgroovyjava-main-applicationjava -jarratpack-applicationdistZipspring-boot-cli-applicationspring grabspring-boot-cli-jar-applicationspring jarweb-applicationweb-servlet-2-applicationOutput Content
All applications support the following REST operations:
GET /GET /class-pathGET /environment-variablesGET /input-argumentsPOST /out-of-memoryGET /request-headersGET /security-providersGET /system-propertiesBuilding
Before building the project, the following tools must be installed:
This project is built with Gradle. After installing the pre-requisites, run:
Building Behind a Proxy
Since this project downloads its dependencies from the internet, building behing a proxy requires some extra effort. In order configure gradle properly, use the following system properties. More information can be found here.
Deploying to Cloud Foundry
Each test application contains a
manifest.ymlfile which allows the built application to be deployed to Cloud Foundry by simply issuing:To avoid clashing with the URLs of other applications, you should specify your own subdomain for the application (unless the test application does not need a subdomain).
Failure Testing
Failure testing is supported for each of the above applications by setting a suitable environment variable.
If the environment variable FAIL_INIT is set, the application will fail to initialize:
If the environment variable FAIL_OOM is set, the application will repeatedly exhaust the heap until the JVM is killed:
Running Tests
To run the tests, do the following:
License
The Tomcat Builder is released under version 2.0 of the Apache License.