Name
addtest
Context
Java type members (Automatically insert Checked)
Pattern
@${testType:newType(org.junit.Test)}
public void test_${name}() {
${staticImport:importStatic('org.junit.Assert.*', 'org.hamcrest.Matchers.*')}
}
Name
addlog
Context
Java type members (Automatically insert Checked)
Pattern
private static Logger log = LoggerFactory.getLogger(${enclosing_type}.class);
${imp:import(org.slf4j.Logger, org.slf4j.LoggerFactory)}
Name
addcon
Context
Java type members (Automatically insert Checked)
Pattern
@RequestMapping(value="${uri_name}", method={RequestMethod.GET})
public String ${method_name}(Model model) {
return "${view_name}";
}
${imp:import(org.springframework.web.bind.annotation.RequestMapping, org.springframework.ui.Model, org.springframework.web.bind.annotation.RequestMethod)}
Name
addspringtest
Context
Java type members (Automatically insert Checked)
Pattern
${imp:import(org.junit.runner.RunWith, org.springframework.test.context.junit4.SpringJUnit4ClassRunner, org.springframework.test.context.ContextConfiguration)}
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {
"classpath*:config/spring/context-common.xml",
"classpath*:config/spring/context-transaction.xml",
"classpath*:config/spring/context-datasource.xml"
})${cursor}