Grails unit or integration tests?
问题 I don't know whether to use unit or integration tests for what I am wanting to test in my Grails 2.2.3 application. I want to run some tests against like this: @TestFor(Student) @Mock(Student) class StudentTests { void testFoundStudent() { def s = Student.findById(myId) assert s != null assert s.firstName = 'Grant' assert s.lastName = 'McConnaughey' } } This is going to require the use of our test database, so would that make it an integration test? When I run this code as a unit test it