Search in sources :

Example 1 with EntityLinks

use of org.springframework.hateoas.EntityLinks in project spring-boot by spring-projects.

the class HypermediaAutoConfigurationTests method entityLinksCreated.

@Test
public void entityLinksCreated() throws Exception {
    this.context = new AnnotationConfigWebApplicationContext();
    this.context.setServletContext(new MockServletContext());
    this.context.register(BaseConfig.class);
    this.context.refresh();
    EntityLinks discoverers = this.context.getBean(EntityLinks.class);
    assertThat(discoverers).isNotNull();
}
Also used : EntityLinks(org.springframework.hateoas.EntityLinks) AnnotationConfigWebApplicationContext(org.springframework.web.context.support.AnnotationConfigWebApplicationContext) MockServletContext(org.springframework.mock.web.MockServletContext) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 EntityLinks (org.springframework.hateoas.EntityLinks)1 MockServletContext (org.springframework.mock.web.MockServletContext)1 AnnotationConfigWebApplicationContext (org.springframework.web.context.support.AnnotationConfigWebApplicationContext)1