Fluent Interface [구글 Visualization API] Fluent Interface 적용하기 http://martinfowler.com/bliki/FluentInterface.html 이름은 좀 멋지지만 별거 아니라는… Statistics statistics = new Statistics(StatisticsChartType.MOTION, “스터디 참석자 통계 그래프”); statistics.addColumn(StatisticsColumnType.STRING, “스터디
EasyMock EasyMock - Changing Behavior for the Same Method Call 같은 메소드가 여러번 호출 될 때, 매번 예측되는 결과가 다르다면.. memberDao.add(member); // Member 객체가 무사히 저장된다.memberDao.add(member); // 예외가 발생한다. 이런 경우에 그냥 fluent interface로 계속해서 andReturn() 이나 andThrow()를 호출하여 recording 할 수 있습니다. memberDao.add(member) .andReturn(resultMember)
Fluent Interface Fluent Interface 참조 : http://www.martinfowler.com/bliki/FluentInterface.html번역 : http://younghoe.info/1 오늘 OpenSeed 스터디를 통해서 알게 된 단어이자 어떻게 해석해야 할지 막막한 ‘흐르는 듯한 인터페이스’라고 하면 어울리려나.. code를 보시면 감이 팍 올 것 같습니다. before private void makeNormal(Customer customer)