Skip to content

Commit 8ce6ac3

Browse files
committed
spring-projects#83 - Enable web environment for integration test.
1 parent b8e2943 commit 8ce6ac3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rest/starbucks/src/test/java/example/stores/StoreRepositoryIntegrationTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014 the original author or authors.
2+
* Copyright 2014-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,13 +30,15 @@
3030
import org.springframework.data.geo.Metrics;
3131
import org.springframework.data.geo.Point;
3232
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
33+
import org.springframework.test.context.web.WebAppConfiguration;
3334

3435
/**
3536
* Integration tests for {@link StoreRepository}.
3637
*
3738
* @author Oliver Gierke
3839
*/
3940
@RunWith(SpringJUnit4ClassRunner.class)
41+
@WebAppConfiguration
4042
@SpringApplicationConfiguration(classes = StoreApp.class)
4143
public class StoreRepositoryIntegrationTests {
4244

0 commit comments

Comments
 (0)