Permalink
Browse files

fix failing test

  • Loading branch information...
1 parent 9367c58 commit 9739cccf1f908db5cc159b1b2b399f13b10ef8a0 @graemerocher graemerocher committed Apr 2, 2012
@@ -57,14 +57,12 @@ class Captain {
}
void testDataBindingViaConstructorCall() {
- def Author = ga.getDomainClass("databindingwithassociationtests.Author").clazz
- def Book = ga.getDomainClass("databindingwithassociationtests.Book3").clazz
- def a = Author.newInstance(name:"Stephen").save(flush:true)
+ def a = new DataBindingWithAssociationAuthor(name:"Stephen").save(flush:true)
assert a != null : "should have saved the Author"
- def b = Book.newInstance(author: a, title:"Book 1", isbn: "308943")
+ def b = new DataBindingWithAssociationBook(author: a, title:"Book 1", isbn: "308943")
assert b.author == a
assert b.title == "Book 1"
}

0 comments on commit 9739ccc

Please sign in to comment.