Skip to content

Commit dfc96b2

Browse files
committed
- Fixed tests
1 parent de3b09b commit dfc96b2

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎spring-rest/pom.xml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
<dependency>
3434
<groupId>org.springframework</groupId>
3535
<artifactId>spring-web</artifactId>
36-
<version>${org.springframework.version}</version>
3736
<exclusions>
3837
<exclusion>
3938
<artifactId>commons-logging</artifactId>
@@ -44,12 +43,10 @@
4443
<dependency>
4544
<groupId>org.springframework</groupId>
4645
<artifactId>spring-webmvc</artifactId>
47-
<version>${org.springframework.version}</version>
4846
</dependency>
4947
<dependency>
5048
<groupId>org.springframework</groupId>
5149
<artifactId>spring-oxm</artifactId>
52-
<version>${org.springframework.version}</version>
5350
</dependency>
5451

5552
<dependency>
@@ -229,7 +226,6 @@
229226

230227
<properties>
231228
<!-- Spring -->
232-
<org.springframework.version>4.2.4.RELEASE</org.springframework.version>
233229
<org.springframework.security.version>4.0.3.RELEASE</org.springframework.security.version>
234230

235231
<!-- persistence -->

‎spring-rest/src/test/java/org/baeldung/web/controller/status/ExampleControllerTest.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
package com.baeldung;
1+
package org.baeldung.web.controller.status;
22

33
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
44
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
55

6+
import org.baeldung.config.WebConfig;
67
import org.junit.Before;
78
import org.junit.Test;
89
import org.junit.runner.RunWith;
910
import org.springframework.beans.factory.annotation.Autowired;
10-
import org.springframework.boot.test.SpringApplicationConfiguration;
11+
import org.springframework.test.context.ContextConfiguration;
1112
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
1213
import org.springframework.test.context.web.WebAppConfiguration;
1314
import org.springframework.test.web.servlet.MockMvc;

0 commit comments

Comments
 (0)