File tree 8 files changed +38
-20
lines changed
spring-cloud/spring-cloud-config/client/src/test/java/org/baeldung
spring-cloud-config-client/src/test/java/org/baeldung
spring-cloud-config-server/src/test/java/org/baeldung
data-flow-shell/src/test/java/org/baeldung
log-sink/src/test/java/org/baeldung
time-processor/src/test/java/org/baeldung
time-source/src/test/java/org/baeldung
8 files changed +38
-20
lines changed Original file line number Diff line number Diff line change 1
- package com .baeldung ;
1
+ package org .baeldung ;
2
2
3
3
import org .junit .Test ;
4
4
import org .junit .runner .RunWith ;
5
5
import org .springframework .boot .test .context .SpringBootTest ;
6
6
import org .springframework .test .context .junit4 .SpringRunner ;
7
7
8
+ import com .baeldung .SpringCloudConfigClientApplication ;
9
+
8
10
@ RunWith (SpringRunner .class )
9
- @ SpringBootTest
10
- public class SpringCloudConfigClientLiveTest {
11
+ @ SpringBootTest ( classes = SpringCloudConfigClientApplication . class )
12
+ public class SpringContextIntegrationTest {
11
13
12
14
@ Test
13
15
public void contextLoads () {
Original file line number Diff line number Diff line change 1
- package com .baeldung ;
1
+ package org .baeldung ;
2
2
3
3
import org .junit .Test ;
4
4
import org .junit .runner .RunWith ;
5
5
import org .springframework .boot .test .context .SpringBootTest ;
6
6
import org .springframework .test .context .junit4 .SpringRunner ;
7
7
8
+ import com .baeldung .SpringCloudConfigServerApplication ;
9
+
8
10
@ RunWith (SpringRunner .class )
9
- @ SpringBootTest
10
- public class SpringCloudConfigServerApplicationTests {
11
+ @ SpringBootTest ( classes = SpringCloudConfigServerApplication . class )
12
+ public class SpringContextIntegrationTest {
11
13
12
14
@ Test
13
15
public void contextLoads () {
Original file line number Diff line number Diff line change 1
- package org .baeldung . spring . cloud ;
1
+ package org .baeldung ;
2
2
3
+ import org .baeldung .spring .cloud .DataFlowShellApplication ;
3
4
import org .junit .Test ;
4
5
import org .junit .runner .RunWith ;
5
6
import org .springframework .boot .test .context .SpringBootTest ;
6
7
import org .springframework .test .context .junit4 .SpringRunner ;
7
8
8
9
@ RunWith (SpringRunner .class )
9
- @ SpringBootTest
10
- public class DataFlowShellApplicationIntegrationTest {
10
+ @ SpringBootTest ( classes = DataFlowShellApplication . class )
11
+ public class SpringContextIntegrationTest {
11
12
12
13
@ Test
13
14
public void contextLoads () {
Original file line number Diff line number Diff line change 1
- package org .baeldung . spring . cloud ;
1
+ package org .baeldung ;
2
2
3
+ import org .baeldung .spring .cloud .LogSinkApplication ;
3
4
import org .junit .Test ;
4
5
import org .junit .runner .RunWith ;
5
6
import org .springframework .boot .test .context .SpringBootTest ;
6
7
import org .springframework .test .context .junit4 .SpringRunner ;
7
8
8
9
@ RunWith (SpringRunner .class )
9
- @ SpringBootTest
10
- public class TimeProcessorApplicationIntegrationTest {
10
+ @ SpringBootTest ( classes = LogSinkApplication . class )
11
+ public class SpringContextIntegrationTest {
11
12
12
13
@ Test
13
14
public void contextLoads () {
Original file line number Diff line number Diff line change 1
- package org .baeldung . spring . cloud ;
1
+ package org .baeldung ;
2
2
3
+ import org .baeldung .spring .cloud .TimeProcessorApplication ;
3
4
import org .junit .Test ;
4
5
import org .junit .runner .RunWith ;
5
6
import org .springframework .boot .test .context .SpringBootTest ;
6
7
import org .springframework .test .context .junit4 .SpringRunner ;
7
8
8
9
@ RunWith (SpringRunner .class )
9
- @ SpringBootTest
10
- public class LogSinkApplicationIntegrationTest {
10
+ @ SpringBootTest ( classes = TimeProcessorApplication . class )
11
+ public class SpringContextIntegrationTest {
11
12
12
13
@ Test
13
14
public void contextLoads () {
Original file line number Diff line number Diff line change 1
- package org .baeldung . spring . cloud ;
1
+ package org .baeldung ;
2
2
3
+ import org .baeldung .spring .cloud .TimeSourceApplication ;
3
4
import org .junit .Test ;
4
5
import org .junit .runner .RunWith ;
5
6
import org .springframework .boot .test .context .SpringBootTest ;
6
7
import org .springframework .test .context .junit4 .SpringRunner ;
7
8
8
9
@ RunWith (SpringRunner .class )
9
- @ SpringBootTest
10
- public class TimeSourceApplicationIntegrationTest {
10
+ @ SpringBootTest ( classes = TimeSourceApplication . class )
11
+ public class SpringContextIntegrationTest {
11
12
12
13
@ Test
13
14
public void contextLoads () {
Original file line number Diff line number Diff line change 1
- package com .baeldung . spring . cloud . config . client ;
1
+ package org .baeldung ;
2
2
3
3
import org .junit .Test ;
4
4
import org .junit .runner .RunWith ;
5
5
import org .springframework .boot .test .context .SpringBootTest ;
6
6
import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
7
7
import org .springframework .test .context .web .WebAppConfiguration ;
8
8
9
+ import com .baeldung .spring .cloud .config .client .ConfigClient ;
10
+
9
11
@ RunWith (SpringJUnit4ClassRunner .class )
10
12
@ SpringBootTest (classes = ConfigClient .class )
11
13
@ WebAppConfiguration
12
- public class ConfigClientLiveTest {
14
+ public class SpringContextIntegrationTest {
13
15
@ Test
14
16
public void contextLoads () {
15
17
}
Original file line number Diff line number Diff line change 82
82
<version >${jstl.version} </version >
83
83
<scope >runtime</scope >
84
84
</dependency >
85
+
86
+ <!-- Test -->
87
+ <dependency >
88
+ <groupId >org.springframework.boot</groupId >
89
+ <artifactId >spring-boot-starter-test</artifactId >
90
+ <version >1.5.10.RELEASE</version >
91
+ <scope >test</scope >
92
+ </dependency >
85
93
86
94
</dependencies >
87
95
You can’t perform that action at this time.
0 commit comments