Clean up TestCommand paraphenalia
This commit is contained in:
4
spring-boot-cli/samples/book.groovy
Normal file
4
spring-boot-cli/samples/book.groovy
Normal file
@@ -0,0 +1,4 @@
|
||||
class Book {
|
||||
String author
|
||||
String title
|
||||
}
|
||||
12
spring-boot-cli/samples/book_and_tests.groovy
Normal file
12
spring-boot-cli/samples/book_and_tests.groovy
Normal file
@@ -0,0 +1,12 @@
|
||||
class Book {
|
||||
String author
|
||||
String title
|
||||
}
|
||||
|
||||
class BookTests {
|
||||
@Test
|
||||
void testBooks() {
|
||||
Book book = new Book(author: "Tom Clancy", title: "Threat Vector")
|
||||
assertEquals("Tom Clancy", book.author)
|
||||
}
|
||||
}
|
||||
0
spring-boot-cli/samples/empty.groovy
Normal file
0
spring-boot-cli/samples/empty.groovy
Normal file
12
spring-boot-cli/samples/spock.groovy
Normal file
12
spring-boot-cli/samples/spock.groovy
Normal file
@@ -0,0 +1,12 @@
|
||||
class HelloSpock extends Specification {
|
||||
def "length of Spock's and his friends' names"() {
|
||||
expect:
|
||||
name.size() == length
|
||||
|
||||
where:
|
||||
name | length
|
||||
"Spock" | 5
|
||||
"Kirk" | 4
|
||||
"Scotty" | 6
|
||||
}
|
||||
}
|
||||
7
spring-boot-cli/samples/test.groovy
Normal file
7
spring-boot-cli/samples/test.groovy
Normal file
@@ -0,0 +1,7 @@
|
||||
class BookTests {
|
||||
@Test
|
||||
void testBooks() {
|
||||
Book book = new Book(author: "Tom Clancy", title: "Threat Vector")
|
||||
assertEquals("Tom Clancy", book.author)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user