Rework the new testing support so that @SpringApplicationTest can be used for standard integration tests, web integration tests with a mock Servlet environment and web integration tests with an embedded servlet container. This means that it a replacement for 1.3's @IntegrationTest and @WebIntegrationTest and allows all SpringApplication testing to be configured using a common annotation. The old @IntegrationTest and @WebIntegrationTest along with their supporting classes have been reinstated to their previous form (while remaining deprecated). This should ensure that they continue to work in 1.4 exactly as they did in 1.3 giving users a smooth path to @SpringApplicationTest. See gh-5477 |
||
---|---|---|
.. | ||
src | ||
README.adoc | ||
docker-compose.yml | ||
pom.xml |
README.adoc
Spring Boot sample with Open TSDB export for metrics. Start opentsdb, e.g. with [Docker Compose]() [source,indent=0] ---- $ docker-compose up ---- Run the app and ping the home page (http://localhost:8080) a few times. Go and look at the result in the TSD UI, e.g. [source,indent=0] ---- $ curl localhost:4242/api/query?start=1h-ago&m=max:counter.status.200.root [ { "metric": "counter.status.200.root", "tags": { "prefix": "spring.b968a76" }, "aggregateTags": [], "dps": { "1430492872": 2, "1430492875": 6 } } ] ----