Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix failing test

  • Loading branch information...
commit 9739cccf1f908db5cc159b1b2b399f13b10ef8a0 1 parent 9367c58
@graemerocher graemerocher authored
View
6 ...test/groovy/org/codehaus/groovy/grails/web/binding/DataBindingWithAssociationTests.groovy
@@ -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"
}
Please sign in to comment.
Something went wrong with that request. Please try again.