본문 바로가기

반응형

emotional developer/detect-Java

TestNG Here i did a feature comparison between JUnit 4 and TestNG. Junit4 와 비교해 매력적인 건 어노테이션으로 그룹테스팅을 지정 할 수 있다는 것인데. 뭐 물론 Junit4에서 testsuite 파일을 만들어서 그룹지어 할 수 있지만, 어노테이션으로 그룹핑 하는 것이 더 편하다는 생각이 든다. (이건 다분히 개인적,,) 참고 할 만한 링크 : http://jnb.ociweb.com/jnb/jnbJul2010.html 더보기
Jmock http://www.jmock.org/ http://opensourcetips.blogspot.com/2007/11/jmock-tests.html package com.test.jmock; interface Subscriber { void receive(String message); } package com.test.jmock; import java.util.ArrayList; import java.util.List; import junit.framework.*; class Publisher { List list = new ArrayList(); void add(Subscriber subscriber) { list.add(subscriber); } void publish(String message) { .. 더보기
eclipse snippet snip·pet〔〕 n. 1 가위로 잘라낸 자투리, 단편, 작은 조각 2 단편(fragment), 조금, 약간 3 (문장의) 부분적 인용, 발췌, 단장(斷章) 4 《구어》 시시한 인물 http://lempel.egloos.com/1601321 http://asnike.com/?p=333 더보기
Sun Java SystemApplication Server 9.1 PerformanceTuning Guide http://dlc.sun.com/pdf/819-3681/819-3681.pdf 더보기
eclipse Update SVN Cache. 이클립스에서 서브버전을 버전관리로 이용할 때. 서브버전 플러그인이 이클립스 최초 실행 시에, update 프로세스를 하게 된다. 하지만, 해당 작업이 너무 느려서 사람을 화나게 만들 정도다.. 한번 이클립스 실행시, 최고 10분 이상 걸렸던 적도 있었는데. 찾아 보니 SVN update 작업 옵션을 끌 수 있었다! http://forums.polarion.org/viewtopic.php?f=8&t=2016 The "Update SVN cache" task allows Subversive to works much faster in most operations. At the same time this task requires lots of memory in order to cache performance-c.. 더보기
DBCP defaultTransactionIsolation DBCP 를 이용한 DB 연결시, 트랙잭션 레벨은 초기 프로퍼티로 설정 할수 있다. 5개의 타입은 기존 java.sql.connection 에 정의된 것을 그대로 이용하는 모델이다. 다만. 설정을 따로 주지 않으면, 문서에 나와 있다시피 사용한 driver 에 초기 설정에 따른 다고 한다. 결국, 흐름을 보자면. DB 더보기
JspException: In <parseNumber>, a parse locale can not be established 실제 예) 2008-05-12 19:53:15 [ERROR](StandardWrapperValve.java:253) Servlet.service() for servlet action threw exception javax.servlet.jsp.JspException: In , a parse locale can not be established at org.apache.taglibs.standard.tag.common.fmt.ParseNumberSupport.doEndTag(ParseNumberSupport.java:134) 해답 ) I was able to solve this problem. I had to set and set the parseLocale attribute of .. 더보기
Eclipse 내, tomcat work디렉토리 위치. tomcat 에 임시파일이 계속 남아있어 1시간 정도 삽질한 경험이 있다... web.xml 에서 jsp compile refresh 설정을 했어야 했는데;; 안 했더니.... 꼬임 현상이 일어났던 것이다;; 아놔.. (추후 설정은 추가..) 재성 아저씨가 work 디렉토리를 알려 주셨는데.. 대략 (뭐 거의 똑같겠지만...) Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work 이 위치에 존재 한다.. (tmp0 의 의미는 Eclipse 내 추가했던 서버의 index 여부 였던것 같다.. ) 아무튼 이와 같은 삽질을 다시는 안했으면.. OTL.... 더보기