Companies Home Search Profile

Unit Testing with JUnit 5 and Kotlin 1

Focused View

Kevin Jones

2:02:19

27 View
  • 01 - Course Overview.mp4
    01:32
  • 02 - Introduction.mp4
    01:40
  • 03 - Initial Setup.mp4
    03:53
  • 04 - Creating a Kotlin Script Gradle File.mp4
    01:58
  • 05 - Building with Maven.mp4
    02:07
  • 06 - The Code We Will Test.mp4
    02:34
  • 07 - Writing the First Test.mp4
    06:16
  • 08 - Introduction.mp4
    06:55
  • 09 - Using Nested Classes for Testing.mp4
    04:49
  • 10 - Writing Parameterized Tests.mp4
    04:58
  • 11 - Using Method Source.mp4
    04:14
  • 12 - The JUnit 5 Test Lifecycle.mp4
    04:12
  • 13 - Introduction.mp4
    02:47
  • 14 - Using the Fluent APIs.mp4
    04:25
  • 15 - Writing Fluent Exception Tests.mp4
    03:39
  • 16 - Fluently Testing Collections.mp4
    04:31
  • 17 - Introduction.mp4
    03:12
  • 18 - Examining the Service Code Under Test.mp4
    02:13
  • 19 - Writing the First Mock.mp4
    10:03
  • 20 - Mocking Exceptions.mp4
    03:57
  • 21 - Using MockKs Annotations.mp4
    07:08
  • 22 - Introduction.mp4
    03:24
  • 23 - Introducing the Code.mp4
    02:36
  • 24 - Writing the First Test.mp4
    06:53
  • 25 - Using Internal Methods to Make Testing Easier.mp4
    04:37
  • 26 - Understanding the Code that Access the File System.mp4
    08:07
  • 27 - Testing Code that Access the File System.mp4
    05:07
  • 28 - Writing Test for Dates.mp4
    04:32
  • Description


    Kotlin is rapidly growing on the JVM (Java Virtual Machine) and this course will show you how to use JUnit 5 to make sure this code is tested and testable.

    What You'll Learn?


      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 1, you will learn how to set up 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.

    More details


    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    A long time ago in a university far, far away Kevin fell in love with programming. Initially on the university's DEC20 computer doing BASIC and Pascal and a little bit of Fortran. His first job had him writing batch PL/1 on an IBM mainframe where he also discovered the arcane delights of JCL. He soon realized the multiuser systems were not for him after discovering the delights of dBase IV on IBM PCs. From here it was all downhill as he became addicted to C and the Windows API. Just missing out on coding for Windows 1, he did code for the other 16 bit versions of Windows, 2 and 3, including the various network-ready versions. He still remembers the awkwardness of having to carry an IBM Token Ring MAU with him wherever he went. After trying to pretend that Windows and C were really object oriented he decided that it would be better to learn C++. It was around this point that he realized that as well as writing code for a living he could be paid for telling people how to write code for a living. He taught Windows, MFC and C++ for a UK training company before his spirit was broken on the back of the OLE support in MFC when he finally stepped away from the nightmare of unmanaged code to the nirvana of the managed runtime called Java. It was at this time that he spoke at several JavaOne conferences usually on the subject of Servlets, JavaServer Pages and tag libraries. After buying the Sun employees copious amounts of Apple Martini Kevin was invited onto the expert groups for the Servlet and JSP specifications. Oh, how he laughed when .Net appeared and the same arguments raged about non-deterministic destruction and garbage collection that were now so old hat in the Java world. He finally got his hands dirty in C# and .Net about eight years ago, again working in the web tier and hating every minute of the using the monstrosity that was and is ASP.Net Web Forms. It wasn't until MVC appeared that he finally felt he had come home to Microsoft. Now of course MVC is so last year and Kevin is focusing more and more on rich clients using JavaScript and tools such as Knockout and AngularJS. He believes that JavaScript is the best thing since, well, JavaScript. He still retains his passion for developing and teaching; spending about a quarter of the year doing the latter and most of the time doing the former. When not stuck in front of a computer you can find him: with his nose in a book, a good one preferably, but almost any book would do; watching a film; walking; running; or annoying his wife by watching sports on television.
    Pluralsight, LLC is an American privately held online education company that offers a variety of video training courses for software developers, IT administrators, and creative professionals through its website. Founded in 2004 by Aaron Skonnard, Keith Brown, Fritz Onion, and Bill Williams, the company has its headquarters in Farmington, Utah. As of July 2018, it uses more than 1,400 subject-matter experts as authors, and offers more than 7,000 courses in its catalog. Since first moving its courses online in 2007, the company has expanded, developing a full enterprise platform, and adding skills assessment modules.
    • language english
    • Training sessions 28
    • duration 2:02:19
    • level average
    • Release Date 2023/10/15