Clean up TestCommand paraphenalia

This commit is contained in:
Dave Syer
2013-10-08 15:39:37 -04:00
parent 1ce13cc2c2
commit b5f0f97110
13 changed files with 283 additions and 301 deletions

View File

@@ -0,0 +1,4 @@
class Book {
String author
String title
}

View 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)
}
}

View File

View 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
}
}

View 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)
}
}