Beginner’s Kotlin Practice: A Sample Project & Unit Tests (Java vs. Kotlin)

Photo by Nathan Dumlao on Unsplash

Configuration

Implementation

<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-serialization-json</artifactId>
<version>1.3.1</version>
</dependency>
data class Something(
val a: String,
val b: Any,
val c: String
) {
override fun toString(): String = a + b + c
}
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test-junit</artifactId>
<version>1.6.10</version>
<scope>test</scope>
</dependency>

I would love to change the world, but they won’t give me the source code | coding 👩🏼‍💻 | coffee ☕️ | jazz 🎷 | anime 🐲 | books 📚 | drawing 🎨

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

On-boarding your custom application to Keptn— Part 2 of 2

Ultimate Guide to Setting up your Python Environment and Jupyter Notebook

Things to Remember While Hiring an IOS Developer

Desktop Tools -4- Linux

SymJAX: symbolic CPU/GPU/TPU programming

Is Test Case Obsolete In Modern Testing — Tentamen Software Testing Blog

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nil Seri

Nil Seri

I would love to change the world, but they won’t give me the source code | coding 👩🏼‍💻 | coffee ☕️ | jazz 🎷 | anime 🐲 | books 📚 | drawing 🎨

More from Medium

Introduction to Kotlin for Java Developers

Quick Start Guide-Protect Jar/War project with Java BCE mode

Understand the basics of Spring bean life cycle

Kotlin for Java Developers