Skip to content

Commit 70b0380

Browse files
committed
fix failing test
1 parent 20bfd48 commit 70b0380

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

grails-test-suite-persistence/src/test/groovy/org/codehaus/groovy/grails/web/binding/DataBindingWithAssociationTests.groovy

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@ class DataBindingWithAssociationTests extends AbstractGrailsHibernateTests {
2626

2727

2828
void testDataBindingViaConstructorCall() {
29-
def Author = ga.getDomainClass("databindingwithassociationtests.Author").clazz
30-
def Book = ga.getDomainClass("databindingwithassociationtests.Book3").clazz
3129

32-
def a = Author.newInstance(name:"Stephen").save(flush:true)
30+
def a = new DataBindingWithAssociationAuthor(name:"Stephen").save(flush:true)
3331

3432
assert a != null : "should have saved the Author"
3533

36-
def b = Book.newInstance(author: a, title:"Book 1", isbn: "308943")
34+
def b = new DataBindingWithAssociationBook(author: a, title:"Book 1", isbn: "308943")
3735
assert b.author == a
3836
assert b.title == "Book 1"
3937
}

0 commit comments

Comments
 (0)