Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Red-Green-Refactor: Practicing TDD with Kotlin & JUnit

via CodeSignal

Overview

This course focuses on practicing the core TDD workflow: "Red-Green-Refactor." You'll write failing tests (Red), implement code to pass them (Green), and refactor while keeping tests passing (Refactor). No new concepts are introduced—just hands-on practice with various requirements to sharpen your TDD skills.

Syllabus

  • Unit 1: Intro to TDD with Kotlin and JUnit
    • Correct Discount Application
    • Zero Discount Handling Task
    • Decimal Discount Precision Task
    • Negative Price Handling Task
    • Discount Calculator Implementation
  • Unit 2: Continue Developing the calculateDiscount Function with Kotlin
    • Negative Discount Percentage Handling in Kotlin Task
    • Handling Very Small Prices in Discount Calculations
    • Minimum Discount Percentage Application Task
    • Capping Maximum Discount Amount Task
  • Unit 3: Shopping Cart System with Kotlin, TDD, and JUnit
    • Starting with an Empty Shopping Cart Task
    • Adding a Single Item to the ShoppingCart in Kotlin
    • Adding Multiple Distinct Items to Shopping Cart
    • Handling Multiple Quantities in ShoppingCart
    • Removing an Item from ShoppingCart in Kotlin
  • Unit 4: Enhancing Shopping Cart Functionality with TDD in Kotlin
    • Removing a Non-Existent Item in ShoppingCart
    • Applying Percentage Discount in Shopping Cart
    • Applying a Bulk Discount to Shopping Cart
    • Clearing All Items in the Shopping Cart Task
    • Updating Item Quantity in Shopping Cart
  • Unit 5: Completing the Shopping Cart with TDD in Kotlin
    • Enforcing Maximum Quantity Limit in Shopping Cart Task
    • Retrieving Item Details by ID in ShoppingCart
    • Applying Discount Codes in Shopping Cart
    • Implement a Shopping Cart with Discount Code Validation in Kotlin
    • Implement Shopping Cart with Existing Item Update Feature
    • Adding to Existing Item in Cart Respects Maximum Quantity

Reviews

Start your review of Red-Green-Refactor: Practicing TDD with Kotlin & JUnit

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.