---
title: "Discussion on \"Chapter 26 - Testing the Insert and Delete Use Cases\" | Hashnode"
description: "Discussion on \"Chapter 26 - Testing the Insert and Delete Use Cases\". Since InsertArtUseCase and DeleteArtUseCase are pure domain logic, they’re easy to test — no Android dependencies, just Kotlin coroutines and a fake repository.\nLet’s write clear, minimal, and clean unit tests using JUnit + Kotlin coroutines test.\nWe..."
url: "https://hashnode.com/posts/chapter-26-testing-the-insert-and-delete-use-cases/6914ad0fdba6e4e0b9869f5b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Chapter 26 - Testing the Insert and Delete Use Cases](https://androidavatar.hashnode.dev/chapter-26-testing-the-insert-and-delete-use-cases?utm_source=hashnode&utm_medium=feed)

Since InsertArtUseCase and DeleteArtUseCase are pure domain logic, they’re easy to test — no Android dependencies, just Kotlin coroutines and a fake repository. Let’s write clear, minimal, and clean unit tests using JUnit + Kotlin coroutines test. We...

Nov 12, 2025 · 2 min read · androidavatar.hashnode.dev  
Read the article

-   [#insertion](https://hashnode.com/tag/insertion)
-   [#deletion](https://hashnode.com/tag/deletion)
-   [#usecase](https://hashnode.com/tag/usecase)
-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#kotlin-coroutines](https://hashnode.com/tag/kotlin-coroutines)
-   [#kotlin-flow](https://hashnode.com/tag/kotlin-flow)
-   [#testing](https://hashnode.com/tag/testing)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)

## Written by

[Ganesh Rama Hegde](https://hashnode.com/@hegde10122)

@hegde10122 · Mumbai,India

  
[View profile](https://hashnode.com/@hegde10122)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
