File tree Expand file tree Collapse file tree
src/test/java/org/springframework/boot/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org.test
22
3- @Grab (" org.springframework.boot: spring-boot-starter-actuator:0.5.0.BUILD-SNAPSHOT " )
3+ @Grab (" spring-boot-starter-actuator" )
44
55@Controller
66class SampleController {
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ class Example {
66
77 @RequestMapping (" /" )
88 @ResponseBody
9- public String helloWorld (Device device ) {
9+ String helloWorld (Device device ) {
1010 if (device. isNormal()) {
11- return " Hello Normal Device!"
11+ " Hello Normal Device!"
1212 } else if (device. isMobile()) {
13- return " Hello Mobile Device!"
13+ " Hello Mobile Device!"
1414 } else if (device. isTablet()) {
15- return " Hello Tablet Device!"
15+ " Hello Tablet Device!"
1616 } else {
17- return " Hello Unknown Device!"
17+ " Hello Unknown Device!"
1818 }
1919 }
2020
Original file line number Diff line number Diff line change 11package org.test
22
3- @Grab (" org. hsqldb:hsqldb-j5:2.0.0 " )
3+ @Grab (" hsqldb" )
44@Configuration
55@EnableBatchProcessing
66class JobConfig {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11package org.test
22
3- @Grab (" org. hsqldb:hsqldb:2.2.9 " )
3+ @Grab (" hsqldb" )
44
55@Configuration
66@EnableTransactionManagement
Original file line number Diff line number Diff line change 11package app
22
3- import groovy.util.logging.Log
4-
5- @Grab (" org.thymeleaf:thymeleaf-spring3:2.0.16" )
3+ @Grab (" thymeleaf-spring3" )
64@Controller
75class Example {
86
Original file line number Diff line number Diff line change 1616
1717package org .springframework .boot .cli ;
1818
19- import static org .junit .Assert .assertEquals ;
20- import static org .junit .Assert .assertTrue ;
21-
2219import java .io .File ;
2320import java .net .URL ;
2421import java .util .concurrent .Callable ;
3734import org .springframework .boot .cli .command .CleanCommand ;
3835import org .springframework .boot .cli .command .RunCommand ;
3936
37+ import static org .junit .Assert .assertEquals ;
38+ import static org .junit .Assert .assertTrue ;
39+
4040/**
4141 * Integration tests to exercise the samples.
4242 *
@@ -95,13 +95,6 @@ public void appSample() throws Exception {
9595 assertTrue ("Wrong output: " + output , output .contains ("Hello World" ));
9696 }
9797
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-
10598 @ Test
10699 public void templateSample () throws Exception {
107100 start ("samples/template.groovy" );
Original file line number Diff line number Diff line change 3333 <slf4j .version>1.7.5</slf4j .version>
3434 <snakeyaml .version>1.12</snakeyaml .version>
3535 <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>
3737 <spring-security .version>3.2.0.RC1</spring-security .version>
3838 <spring-integration .version>2.2.4.RELEASE</spring-integration .version>
3939 <spring-integration-groovydsl .version>1.0.0.M1</spring-integration-groovydsl .version>
You can’t perform that action at this time.
0 commit comments