File tree Expand file tree Collapse file tree 8 files changed +13
-46
lines changed
src/test/java/org/springframework/boot/cli Expand file tree Collapse file tree 8 files changed +13
-46
lines changed Original file line number Diff line number Diff line change 1
1
package org.test
2
2
3
- @Grab (" org.springframework.boot: spring-boot-starter-actuator:0.5.0.BUILD-SNAPSHOT " )
3
+ @Grab (" spring-boot-starter-actuator" )
4
4
5
5
@Controller
6
6
class SampleController {
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ class Example {
6
6
7
7
@RequestMapping (" /" )
8
8
@ResponseBody
9
- public String helloWorld (Device device ) {
9
+ String helloWorld (Device device ) {
10
10
if (device. isNormal()) {
11
- return " Hello Normal Device!"
11
+ " Hello Normal Device!"
12
12
} else if (device. isMobile()) {
13
- return " Hello Mobile Device!"
13
+ " Hello Mobile Device!"
14
14
} else if (device. isTablet()) {
15
- return " Hello Tablet Device!"
15
+ " Hello Tablet Device!"
16
16
} else {
17
- return " Hello Unknown Device!"
17
+ " Hello Unknown Device!"
18
18
}
19
19
}
20
20
Original file line number Diff line number Diff line change 1
1
package org.test
2
2
3
- @Grab (" org. hsqldb:hsqldb-j5:2.0.0 " )
3
+ @Grab (" hsqldb" )
4
4
@Configuration
5
5
@EnableBatchProcessing
6
6
class JobConfig {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
package org.test
2
2
3
- @Grab (" org. hsqldb:hsqldb:2.2.9 " )
3
+ @Grab (" hsqldb" )
4
4
5
5
@Configuration
6
6
@EnableTransactionManagement
Original file line number Diff line number Diff line change 1
1
package app
2
2
3
- import groovy.util.logging.Log
4
-
5
- @Grab (" org.thymeleaf:thymeleaf-spring3:2.0.16" )
3
+ @Grab (" thymeleaf-spring3" )
6
4
@Controller
7
5
class Example {
8
6
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .boot .cli ;
18
18
19
- import static org .junit .Assert .assertEquals ;
20
- import static org .junit .Assert .assertTrue ;
21
-
22
19
import java .io .File ;
23
20
import java .net .URL ;
24
21
import java .util .concurrent .Callable ;
37
34
import org .springframework .boot .cli .command .CleanCommand ;
38
35
import org .springframework .boot .cli .command .RunCommand ;
39
36
37
+ import static org .junit .Assert .assertEquals ;
38
+ import static org .junit .Assert .assertTrue ;
39
+
40
40
/**
41
41
* Integration tests to exercise the samples.
42
42
*
@@ -95,13 +95,6 @@ public void appSample() throws Exception {
95
95
assertTrue ("Wrong output: " + output , output .contains ("Hello World" ));
96
96
}
97
97
98
- @ Test
99
- public void simpleGrabSample () throws Exception {
100
- start ("samples/simpleGrab.groovy" );
101
- String output = this .outputCapture .getOutputAndRelease ();
102
- assertTrue ("Wrong output: " + output , output .contains ("Hello World" ));
103
- }
104
-
105
98
@ Test
106
99
public void templateSample () throws Exception {
107
100
start ("samples/template.groovy" );
Original file line number Diff line number Diff line change 33
33
<slf4j .version>1.7.5</slf4j .version>
34
34
<snakeyaml .version>1.12</snakeyaml .version>
35
35
<spock .version>0.7-groovy-2.0</spock .version>
36
- <spring .version>4.0.0.M3 </spring .version>
36
+ <spring .version>4.0.0.BUILD-SNAPSHOT </spring .version>
37
37
<spring-security .version>3.2.0.RC1</spring-security .version>
38
38
<spring-integration .version>2.2.4.RELEASE</spring-integration .version>
39
39
<spring-integration-groovydsl .version>1.0.0.M1</spring-integration-groovydsl .version>
You can’t perform that action at this time.
0 commit comments