- The boss drives his men; the leader coaches them.
- The boss depends upon authority; the leader on good will.
- The boss inspires fear; the leader inspires enthusiasm.
- The boss says "I"; the leader, "we."
- The boss fixes the blame for the breakdown; the leader fixes the breakdown.
- The boss knows how it is done; the leader shows how.
- The boss says "Go"; the leader says "Let's go!"
자 이제 Grails 2.0 의 새 기능을 공부해 볼까~~~!!!
Grails 2.0 의 새로운 기능들
-JJC-
package dwgpost
import grails.test.*
class UtilServiceTests extends GrailsUnitTestCase {
protected void setUp() {
super.setUp()
}
protected void tearDown() {
super.tearDown()
}
void testSomething() {
mockLogging(UtilService)
def postR=
mockDomain(PostMaster, [
new PostMaster(postreceivers:[
new PostReceivers(receiver:new Receivers())
])
])
def testService=new UtilService()
assertNotNull testService
def items=testService.getReceiversEmails('1')
assertNotNull items
log.println items
assertTrue items.size()>0
assertEquals("jjc@abc2010.com", items[0])
}
}




