Category: General Development
Running and debugging Clojure code with Intellij IDEA ~ Tomek Lipski’s blog
Source: Running and debugging Clojure code with Intellij IDEA ~ Tomek Lipski’s blog
SpringBoot: Making use of @Value properties from YAML files for Cucumber tests
In case you use: 1. SpringBoot to build your web applications using Java 2. Test it with Cucumber 3. Use YAML files for configurable property values You can use the YamlPropertiesFactoryBean to make use of @Value for your test configuration. application.yml: myapp: base: url: some_url cucumber.xml (or application context .xml): <context:component-scan base-package="cucumber.runtime.java.spring"/> <context:annotation-config/> <bean id="yamlProperties"…
IntelliJ IDEA: Plugin to generate SerialVersionUID
Easy as pie. 1. Go to: File > Settings > Plugins > Browse repositories > GenerateSerialVersionUID. 2. Install the plugin and restart. 3. Generate the ID by: Code > Generate > serialVersionUID or the shortcut.
IntelliJ IDEA: Create JUnit Test method code snippet shortcut
I’ve been using IntelliJ over Eclipse for a while now, mainly because it feels newer and more tuned to develop with Maven-based projects. This is just me. Anyway, if you do TDD, you’ll want to take advantage of IntelliJ’s Live Templates. In this post, I’m writing about adding JUnit test code snippets, like so: @Test…
IntelliJ IDEA: Getting “Fetch failed. Fatal: Could not read from remote repository”
In case you encounter this issue, do the following: 1. Preferences > SSH 2. Make sure SSH executable is set to “Native.” (If already so, switch to “Built-in,” apply it, then switch back to “Native.”) 3. Happy fetching!
Git: Create a duplicate branch of master
I worked on upgrading a web service from JDK 1.6 to JDK 1.8 and was successful (that’s something I need to write a post on); however, I wanted to make sure I could revert back to pre-1.8 in case it breaks in production. The solution was to create a clone or duplicate of master before…