Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.15 KB

eclipse-template.adoc

File metadata and controls

32 lines (20 loc) · 1.15 KB

Apache commons Logging

${:import('org.apache.commons.logging.Log','org.apache.commons.logging.LogFactory')}

private static final Log log = LogFactory.getLog(${primary_type_name}.class);

Sl4fj

${:import('org.slf4j.Logger','org.slf4j.LoggerFactory')}

private final Logger log = LoggerFactory.getLogger(${primary_type_name}.class);

Test 메소드 추가

@${testType:newType(org.junit.Test)} public void ${specDescription}() {

${staticImport:importStatic('org.junit.Assert.', 'org.mockito.BDDMockito.', 'org.hamcrest.CoreMatchers.*')} }

Test 라이브러리 import

${is1:importStatic('org.hamcrest.CoreMatchers.')}${is2:importStatic('org.junit.Assert.')}${is5:importStatic('org.mockito.BDDMockito.*')}

Spring TestRunner

${:import('org.junit.runner.RunWith','org.springframework.test.context.ContextConfiguration','org.springframework.test.context.junit4.SpringJUnit4ClassRunner')}@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = { "/applicationContext.xml"})

Mockito Test Runner

${:import('org.mockito.runners.MockitoJUnitRunner')}@RunWith(MockitoJUnitRunner.class)