{"id":19040920,"url":"https://github.com/cloudfoundry/java-test-applications","last_synced_at":"2025-07-18T17:02:26.683Z","repository":{"id":8931126,"uuid":"10661980","full_name":"cloudfoundry/java-test-applications","owner":"cloudfoundry","description":"Applications used for testing the Java buildpack","archived":false,"fork":false,"pushed_at":"2025-02-17T14:06:31.000Z","size":2700,"stargazers_count":33,"open_issues_count":0,"forks_count":67,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-06-14T00:03:17.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudfoundry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-06-13T08:30:13.000Z","updated_at":"2023-05-12T18:48:01.000Z","dependencies_parsed_at":"2024-11-08T22:27:17.631Z","dependency_job_id":"ebca0b80-0251-4085-9dac-188a6a217f22","html_url":"https://github.com/cloudfoundry/java-test-applications","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cloudfoundry/java-test-applications","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fjava-test-applications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fjava-test-applications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fjava-test-applications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fjava-test-applications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry","download_url":"https://codeload.github.com/cloudfoundry/java-test-applications/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fjava-test-applications/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265797659,"owners_count":23829810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T22:26:05.865Z","updated_at":"2025-07-18T17:02:26.635Z","avatar_url":"https://github.com/cloudfoundry.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Test Applications\n\nA collection of applications used for testing the Java buildpack.\n\n## Applications\n| Name | Description\n| ---- | -----------\n| `dist-zip-application` | A Spring Boot application, deployed as a `distZip`\n| `ejb-application` | A JEE EJB application using Servlet 3\n| `groovy-application` | An application started with `groovy`\n| `java-main-application` | A Spring Boot application started with `java -jar`\n| `ratpack-application` | A Ratpack application, deployed as a `distZip`\n| `spring-boot-cli-application` | A Spring Boot CLI application, deployed with `spring grab`\n| `spring-boot-cli-jar-application` | A Spring Boot CLI application, deployed with `spring jar`\n| `web-application` | A Spring MVC application using Servlet 3\n| `web-servlet-2-application` | A Spring MVC application using Servlet 2\n\n### Output Content\nAll applications support the following REST operations:\n\n| URI | Description\n| --- | -----------\n| `GET  /` | The health of the application\n| `GET  /class-path` | The classpath of the application\n| `GET  /environment-variables` | The environment variables available to the application\n| `GET  /input-arguments` | The list of JVM input arguments for the application\n| `POST /out-of-memory` | The URL to trigger an out of memory error\n| `GET  /request-headers` | The http request headers of the current request\n| `GET  /security-providers` | The system security providers available to the application\n| `GET  /system-properties` | The system properties available to the application\n\n## Building\n\nBefore building the project, the following tools must be installed:\n* [JDK 8](http://www.oracle.com/technetwork/java/javase/downloads/index.html)\n* [Spring Boot 2 CLI](http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#getting-started-installing-the-cli)\n\nThis project is built with Gradle. After installing the pre-requisites, run:\n\n```plain\n./gradlew\n```\n\n### Building Behind a Proxy\nSince 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][].\n\n```plain\n./gradlew -Dhttp.proxyHost=\u003cHOST\u003e -Dhttp.proxyPort=\u003cPORT\u003e\n```\n\n## Deploying to Cloud Foundry\nEach test application contains a `manifest.yml` file which allows the built application to be deployed to Cloud Foundry by simply issuing:\n\n```plain\ncf push\n```\n\nTo 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).\n\n## Failure Testing\nFailure testing is supported for each of the above applications by setting a suitable environment variable.\n\nIf the environment variable FAIL_INIT is set, the application will fail to initialize:\n\n```plain\ncf set-env \u003capplication name\u003e FAIL_INIT true\n```\n\nIf the environment variable FAIL_OOM is set, the application will repeatedly exhaust the heap until the JVM is killed:\n\n```plain\ncf set-env \u003capplication name\u003e FAIL_OOM true\n```\n\n## Running Tests\nTo run the tests, do the following:\n\n```bash\n./gradlew\n```\n\n## License\nThe Tomcat Builder is released under version 2.0 of the [Apache License][].\n\n[Apache License]: http://www.apache.org/licenses/LICENSE-2.0\n[here]: http://stackoverflow.com/questions/5991194/gradle-proxy-configuration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fjava-test-applications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry%2Fjava-test-applications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fjava-test-applications/lists"}