Hi (it is propably stupid question)
how can acquire Domain class from database in test?
class PollServiceTests extends GrailsUnitTestCase {
Integer id = 1
void testSomething() {
Teacher teacher1 = Teacher.get(id)
assert teacher1 != null
}
}
I always get null or
No signature of method: cz.jak.Teacher.get() is applicable for argument types: (java.lang.Integer) values: [1]
thanks a lot Tom