레이블이 java인 게시물을 표시합니다. 모든 게시물 표시
레이블이 java인 게시물을 표시합니다. 모든 게시물 표시

2014년 4월 3일 목요일

Growing Object-Oriented Software Guided by Tests

Example Code

The Worked Example (Auction Sniper)

The code for the long Auction Sniper worked example, which makes up Part III of the book, is available in a number of programming languages:

Examples from the Sustainable TDD and Advanced Topics Parts

Smaller code examples from other chapters, including Test DiagnosticsTest FlexibilityTesting PersistenceTesting Multithreaded Code and Testing Asynchronous Code:

A Maybe Type

A Maybe type, as mentioned in the Flexibility chapter.

Tools

You'll need Git to check out any of the code examples. The free version of IntelliJ comes with Git support as part of the standard install.
To explore the Java code you can use the Eclipse and/or IntelliJ IDEs.

2014년 2월 24일 월요일

BeanUtils.copyProperties사용 할 때 copyProperties() throws a ConversionException : No value specified 발생 처리

BeanUtils.copyProperties(targetVO, vo); 사용시 copyProperties() throws a ConversionException : No value specified  발생할 경우 대상 vo객체에 Date, Timestamp가 있을 경우 오류가 발생한다.

이럴때는 아래와 같이 지정해주면 된다.

BeanUtilsBean beanUtilsBean = BeanUtilsBean.getInstance();
beanUtilsBean.getConvertUtils().register(new org.apache.commons.beanutils.converters.SqlTimestampConverter(null), java.sql.Timestamp.class);
BeanUtils.copyProperties(eventEnrollVO, enrollVO);