If spring-hateoas is on the classpath and an MvcEndpoint returns a @ResponseBody it will be extended and wrapped into a Resource with links. All the existing endpoints that return sensible JSON data can be extended this way (i.e. not /logfile). The HAL browser will also be added as an endpoint if available on the classpath. Finally, asciidocs for the Actuator endpoints are available as a separate jar file, which if included in an app will also generate a new (HTTP) endpoint. Fixes gh-1390
19 lines
502 B
Java
19 lines
502 B
Java
package demo;
|
|
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
import org.springframework.test.context.web.WebAppConfiguration;
|
|
import org.springframework.boot.test.SpringApplicationConfiguration;
|
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
|
@RunWith(SpringJUnit4ClassRunner.class)
|
|
@SpringApplicationConfiguration(classes = JpaHypermediaApplication.class)
|
|
@WebAppConfiguration
|
|
public class JpaHypermediaApplicationTests {
|
|
|
|
@Test
|
|
public void contextLoads() {
|
|
}
|
|
|
|
}
|