TEST(12)
-
Server node별 instance명 구하기
전제 : 1) Was Server의 instance명이 VM Agument에 설정이 되어있어야 한다. 2) "classpath:spring/context/context-properties.xml" 에서 config.properties가 연결되어있어야 함. # 선 셋팅 작업 1) Local test 시 Vm argument에 server명 입력 : -Dserver="acetServer11" => # Run 할 때 설정에서 vm argument를 넣어줘야한다는거~!(in eclipse) 2) config.properties에 아래 내용 추가 #instance name node.instance.name=${server} # Junit Test 소스 package com.kt.oss.pcp.acet; impor..
2013.08.20 -
checkStyle plug-in 설치
역시나 체크 스타일도..다른 플러그인과 마찬가지로!! Help > Install New Software.. > checkStyle - http://eclipse-cs.sourceforge.net/update (버전에 맞게 선택) > next, next > 이클립스 재가동 - 끝 -
2013.08.19 -
PMD 확인 후 룰셋 셋팅하기
2013/08/19 - [TEST/PMD] - pmd plug-in 설치 설치 후 reStart를 하고 난 뒤에 PMD가 잘 깔려있는지 보자. Window > Preferences > PMD 좌측에 메뉴가 있는지 확인하자!^-^good~ rule set을 적용하기 위해 PMD메뉴 > Rules configuration 을 클릭 각 업무나 회사의 룰에 맞게 적용해야 할 룰셋이 있다면(xml) 1) Clear all를 통해 지운다.(기본 설정되어져있는 룰셋 제거) 2) Import rule set.. 3) 원하는 룰셋을 찾아 적용 룰셋을 적용한 뒤 사용해보자. pmd를 적용한 프로젝트 폴더에서 마우스 우클릭 -> 메뉴에 PMD가 있을 것이다. -> Check Code wiht PMD 등등 PMD의 명령어들이..
2013.08.19 -
pmd plug-in 설치
다른 플러그인과 마찬가지로 Help > Install New Software.. > http://pmd.sf.net/exlipse (버전에 맞게 선택 - 본인은 ver 3.2.6 선택) > next, next > 이클립스 재가동 참 쉽죠잉? ㅎㅎㅎ - 끝 -
2013.08.19 -
Junit Resource
JUnit 테스트를 하려고 했을 때 혼돈이 되었던 내용이다. Resource는 어디에 것을 써야 할까??? 구성은 보통 maven 프로젝트를 사용 한다면 main / test 로 나뉘어진다. java build path를 보면 source쪽에 보면 알 수 있다. @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath:spring/context/context-common.xml", "classpath:spring/context/context-aspect.xml", "classpath:spring/context/context-test-datasource.xml", "classpath:spring/context..
2013.07.05 -
TDD(테스트 주도 개발)
테스트 주도 개발..! 우선 TDD란 무엇인지 알아보자^-^ 프로그램을 작성하기 전에 테스트부터 먼저하라! (Test the program before you write it) - Kent Beck - 말 그대로 테스트 부터 하는 것이다. 테스트 주도 개발의 목표는? Clean code that works (잘 동작하는 깔끔한 코드) - Ron Jeffries -
2013.04.16