티스토리 툴바


  • 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!"
Posted by gogogo

Grails 2.0 공개

Grails 2011/12/16 23:32

자 이제 Grails 2.0 의 새 기능을 공부해 볼까~~~!!!


Grails 2.0 의 새로운 기능들

 

- 새로운 콘솔UI - 탭구성 및 컬러출력
- 더 좋아지고 튼튼해진 reloading 매커니즘- 서버재시작이 더욱 적어짐
- 개선된 오류 리포팅 및 문제 분석
- 최신의 가장훌륭한 라이브러리들 : 그루비1.8, 스프링3.1, 하이버네이트3.6 과 서블릿 3.0
- 강력한 정적리소스(CSS,Javascript 등)용 프레임워크
- 링크 생성 및 페이지 렌더링을 위한 새로운 API
- 새로워진 GORM 기능 : detached criteria, Where 쿼리, 다중 data sources 등
- 데이타베이스 마이그레이션과 역공학용 표준 플러그인 제공
- 완전한 GORM 에뮬레이션을 제공하는 새로워진 단위테스트용API
- 이에 더해 몇백가지의 소소한 개선

-JJC-
Posted by gogogo


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])
 }
}

Posted by gogogo