[bs-62] Add integration tests for CLI samples

[Fixes #48658503]
This commit is contained in:
Dave Syer
2013-04-24 16:09:17 +01:00
parent c91e83c7d2
commit 38f0cf1ed2
14 changed files with 265 additions and 33 deletions

View File

@@ -1,12 +1,6 @@
package org.test
@GrabResolver(name='spring-milestone', root='http://repo.springframework.org/milestone')
@GrabResolver(name='spring-snapshot', root='http://repo.springframework.org/snapshot')
@Grab("org.springframework.bootstrap:spring-bootstrap:0.0.1-SNAPSHOT")
@Grab("org.springframework:spring-context:4.0.0.BOOTSTRAP-SNAPSHOT")
@org.springframework.bootstrap.context.annotation.EnableAutoConfiguration
@org.springframework.stereotype.Component
@Component
class Example implements org.springframework.bootstrap.CommandLineRunner {
@org.springframework.beans.factory.annotation.Autowired
@@ -18,7 +12,7 @@ class Example implements org.springframework.bootstrap.CommandLineRunner {
}
@org.springframework.stereotype.Service
@Service
class MyService {
public String sayWorld() {

View File

@@ -0,0 +1,16 @@
package org.test
@GrabResolver(name='spring-snapshot', root='http://repo.springframework.org/snapshot')
@Grab("org.springframework.bootstrap:spring-bootstrap-service:0.0.1-SNAPSHOT")
@Controller
class SampleController {
@RequestMapping("/")
@ResponseBody
public def hello() {
[message: "Hello World!"]
}
}

View File

@@ -1,4 +1,3 @@
@org.springframework.bootstrap.context.annotation.EnableAutoConfiguration
@Controller
class Example {