- Add a
custom.xmlfile to:
- Windows: <your_user_home_directory>.IntelliJ IDEA<version_number>\config\templates
- Linux: ~IntelliJ IDEA/config/templates
- macOS: ~/Library/Preferences/IntelliJ IDEA/templates
- Add the content (next snippet)
- Restart IntelliJ
| package com.example; | |
| import org.apache.commons.lang.StringUtils; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.lang.reflect.Method; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; |
| @WebAppConfiguration | |
| @ContextConfiguration("classpath:cucumber.xml") | |
| public class CustomerStepDefinitions { | |
| @Autowired | |
| protected StepDefinitionsContext context; | |
| @When("^I search for all the exisiting resources and format \"([^\"]*)\"$") | |
| public void I_search_for_all_the_exisiting_resources_and_format(String mediaType) throws Throwable { | |
| MediaType requestedMediatype = MediaType.parseMediaTypes(mediaType).get(0); |
Include a timeline