This commit is contained in:
Phillip Webb 2014-04-25 15:07:16 +01:00
parent 1ae91a135c
commit fba08e7811
6 changed files with 16 additions and 12 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.boot.autoconfigure.data.rest;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;

View File

@ -29,8 +29,9 @@ import org.springframework.hateoas.config.EnableHypermediaSupport.HypermediaType
/**
* {@link EnableAutoConfiguration Auto-configuration} for Spring HATEOAS's
* {@link EnableHypermediaSupport}.
*
*
* @author Roy Clarkson
* @since 1.1.0
*/
@Configuration
@ConditionalOnClass(Resource.class)

View File

@ -31,4 +31,4 @@ public class JmsTemplateProperties {
this.pubSubDomain = pubSubDomain;
}
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -13,9 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.boot.autoconfigure.data.rest;
import static org.junit.Assert.assertNotNull;
package org.springframework.boot.autoconfigure.data.rest;
import org.junit.Test;
import org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;
@ -30,13 +29,15 @@ import org.springframework.mock.web.MockServletContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import static org.junit.Assert.assertNotNull;
/**
* Tests for {@link RepositoryRestMvcAutoConfiguration}.
*
* @author Rob Winch
*
*/
public class RepositoryRestMvcAutoConfigurationTests {
private AnnotationConfigWebApplicationContext context;
@Test

View File

@ -16,9 +16,6 @@
package org.springframework.boot.autoconfigure.hateoas;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.After;
import org.junit.Test;
import org.springframework.hateoas.LinkDiscoverer;
@ -27,9 +24,12 @@ import org.springframework.hateoas.MediaTypes;
import org.springframework.hateoas.hal.HalLinkDiscoverer;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
/**
* Tests for {@link HypermediaAutoConfiguration}.
*
*
* @author Roy Clarkson
*/
public class HypermediaAutoConfigurationTests {

View File

@ -29,4 +29,5 @@ public class SampleDataRestApplication {
public static void main(String[] args) throws Exception {
SpringApplication.run(SampleDataRestApplication.class, args);
}
}