File tree Expand file tree Collapse file tree 8 files changed +98
-0
lines changed
spring-cloud-sleuth-samples
spring-cloud-sleuth-sample-messaging
spring-cloud-sleuth-sample-ribbon
spring-cloud-sleuth-sample-zipkin
spring-cloud-sleuth-sample Expand file tree Collapse file tree 8 files changed +98
-0
lines changed Original file line number Diff line number Diff line change 68
68
<groupId >org.projectlombok</groupId >
69
69
<artifactId >lombok</artifactId >
70
70
</dependency >
71
+ <dependency >
72
+ <groupId >org.springframework.boot</groupId >
73
+ <artifactId >spring-boot-starter-test</artifactId >
74
+ <scope >test</scope >
75
+ </dependency >
71
76
</dependencies >
72
77
73
78
</project >
Original file line number Diff line number Diff line change
1
+ package sample ;
2
+
3
+ import org .junit .Test ;
4
+ import org .junit .runner .RunWith ;
5
+ import org .springframework .boot .test .SpringApplicationConfiguration ;
6
+ import org .springframework .test .context .TestPropertySource ;
7
+ import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
8
+ import org .springframework .test .context .web .WebAppConfiguration ;
9
+
10
+ @ RunWith (SpringJUnit4ClassRunner .class )
11
+ @ SpringApplicationConfiguration (classes = SampleMessagingApplication .class )
12
+ @ WebAppConfiguration
13
+ @ TestPropertySource (properties ="sample.zipkin.enabled=false" )
14
+ public class SampleMessagingApplicationTests {
15
+
16
+ @ Test
17
+ public void contextLoads () {
18
+ }
19
+
20
+ }
Original file line number Diff line number Diff line change 64
64
<groupId >org.projectlombok</groupId >
65
65
<artifactId >lombok</artifactId >
66
66
</dependency >
67
+ <dependency >
68
+ <groupId >org.springframework.boot</groupId >
69
+ <artifactId >spring-boot-starter-test</artifactId >
70
+ <scope >test</scope >
71
+ </dependency >
67
72
</dependencies >
68
73
69
74
</project >
Original file line number Diff line number Diff line change
1
+ package sample ;
2
+
3
+ import org .junit .Test ;
4
+ import org .junit .runner .RunWith ;
5
+ import org .springframework .boot .test .SpringApplicationConfiguration ;
6
+ import org .springframework .test .context .TestPropertySource ;
7
+ import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
8
+ import org .springframework .test .context .web .WebAppConfiguration ;
9
+
10
+ @ RunWith (SpringJUnit4ClassRunner .class )
11
+ @ SpringApplicationConfiguration (classes = SampleRibbonApplication .class )
12
+ @ WebAppConfiguration
13
+ @ TestPropertySource (properties ="sample.zipkin.enabled=false" )
14
+ public class SampleRibbonApplicationTests {
15
+
16
+ @ Test
17
+ public void contextLoads () {
18
+ }
19
+
20
+ }
Original file line number Diff line number Diff line change 64
64
<groupId >org.projectlombok</groupId >
65
65
<artifactId >lombok</artifactId >
66
66
</dependency >
67
+ <dependency >
68
+ <groupId >org.springframework.boot</groupId >
69
+ <artifactId >spring-boot-starter-test</artifactId >
70
+ <scope >test</scope >
71
+ </dependency >
67
72
</dependencies >
68
73
69
74
</project >
Original file line number Diff line number Diff line change
1
+ package sample ;
2
+
3
+ import org .junit .Test ;
4
+ import org .junit .runner .RunWith ;
5
+ import org .springframework .boot .test .SpringApplicationConfiguration ;
6
+ import org .springframework .test .context .TestPropertySource ;
7
+ import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
8
+ import org .springframework .test .context .web .WebAppConfiguration ;
9
+
10
+ @ RunWith (SpringJUnit4ClassRunner .class )
11
+ @ SpringApplicationConfiguration (classes = SampleZipkinApplication .class )
12
+ @ WebAppConfiguration
13
+ @ TestPropertySource (properties ="sample.zipkin.enabled=false" )
14
+ public class SampleSleuthApplicationTests {
15
+
16
+ @ Test
17
+ public void contextLoads () {
18
+ }
19
+
20
+ }
Original file line number Diff line number Diff line change 60
60
<groupId >org.projectlombok</groupId >
61
61
<artifactId >lombok</artifactId >
62
62
</dependency >
63
+ <dependency >
64
+ <groupId >org.springframework.boot</groupId >
65
+ <artifactId >spring-boot-starter-test</artifactId >
66
+ <scope >test</scope >
67
+ </dependency >
63
68
</dependencies >
64
69
65
70
</project >
Original file line number Diff line number Diff line change
1
+ package sample ;
2
+
3
+ import org .junit .Test ;
4
+ import org .junit .runner .RunWith ;
5
+ import org .springframework .boot .test .SpringApplicationConfiguration ;
6
+ import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
7
+ import org .springframework .test .context .web .WebAppConfiguration ;
8
+
9
+ @ RunWith (SpringJUnit4ClassRunner .class )
10
+ @ SpringApplicationConfiguration (classes = SampleSleuthApplication .class )
11
+ @ WebAppConfiguration
12
+ public class SampleSleuthApplicationTests {
13
+
14
+ @ Test
15
+ public void contextLoads () {
16
+ }
17
+
18
+ }
You can’t perform that action at this time.
0 commit comments