This post demonstrates how to create a Kotlin-based Spring Boot project using IntelliJ IDEA. It also creates a simple command-line application that leverages Spring’s Dependency Injection.
Kotlin – Using Lists
This post shows how to create and use Lists in Kotlin. It will also briefly touch on mutable and immutable lists.
Kotlin – Read file line by line from Classpath
This post shows how to leverage Java libraries (from our underlying JVM) to read file line by line from classpath using Kotlin. Also, IntelliJ IDE is used for this post but can easily be replicated in Eclipse.
Should you use Mockito thenReturn or thenAnswer?
Should you use Mockito thenReturn or thenAnswer? It depends! The thenReturn returns the same value in every method run; while the thenAnswer does not. We use the former to return hard-coded values; while we use the latter for derived values.
Kotlin – Singleton
This post demonstrates how to create a Singleton object in Kotlin.
Kotlin – Overloading Constructors
This post demonstrates how to overload class constructors in Kotlin.
Kotlin – How to use your Kotlin library in Java Maven projects
This post demonstrates how to use a Maven dependency written in Kotlin in a Java Maven project.
Kotlin – How to create Maven project for Kotlin
This post demonstrates how to create a Maven project for Kotlin as as library jar. Instead of a Java codes, we’ll only have Kotlin codes.
Kotlin – Compile and Run from Windows Command Line
This post demonstrates how to compile and run Kotlin from Windows Command Line. For Unix/Linux, it should be quite similar.
How to block port using Ruby for testing purposes
This post is about using a port so that other applications will not use it in test scenarios. For instance, you have some tests that use a mock web service, and you require ranges of port numbers. So, the idea