Description
Course info
Level
Intermediate
Updated
Sep 26, 2019
Duration
2h 3m
Description

Junit 5 is the de-facto standard testing framework on the JVM. It is used to test application code in many areas including enterprise, desktop, and mobile applications. In this course, Unit Testing with JUnit 5 and Kotlin, you will learn how to setup JUnit to test Kotlin code, including some of the issues you will encounter that are unique to Kotlin. First, you will see how to set up your environment to use JUnit 5 for Kotlin including setting up Gradle and Maven environments and using an IDE to run the tests. Next, you will be introduced to Kluent, a Kotlin fluent assertions library. Then, you will see how to change assertions using this fluent syntax, as well as new, cleaner ways of writing assertions using the Kluent APIs. Finally, you will explore ‘mocking’ using MockK, a mocking framework written in and for Kotlin. When you are finished with this course, you will have the skills to test Kotlin code using JUnit and how to refactor code to make it testable.

About the author
About the author

Kevin has spent way too many years in the software industry. Starting on PL/1 on IBM mainframes then graduating through dBase IV to Windows and eventually onto Java, .Net and now JavaScript where he finally thinks he has found a home until the next new shiny comes along.

More from the author
Java Web Fundamentals
Intermediate
3h 22m
Jun 5, 2019
Building Web Applications in Kotlin Using Ktor
Intermediate
2h 13m
May 31, 2019
More courses by Kevin Jones
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
[Autogenerated] everyone. My name is Kevin Jones. Welcome to my course unit testing with Jamie at five on Copley. I'm a developer and owner, had rock solid knowledge Softer Development Company based in the United Kingdom. Scotland is the hot new language on the J V M on like code written in any language code written in coddling needs to be tested on testable. J Unit five is the latest version of the most widely used testing framework in the Java world. This course covers how these two fit together as well as covering J Unit five mocking and fluent AP eyes. The course will cover the difficult issues you come across when testing. How do you create test with static code? How do you test code? It relies on dates on How do you test code that wants to access the file system? Some of the major topics we will cover include setting up and running tests with your Unit five critic and using mocks with Ma Ke using Cleveland to create fluent AP eyes dropping the file a P I on creating a date time provider. By the end of this course, you'll know how to test coddling code using J Unit and understand how to re fact a code so the previously harder test code becomes testable. Before beginning the course, you should be familiar with the programming Cortland.