---
title: "Discussion on \"Chapter 27 - Testing the Repository Implementation for the Insert and Delete Use Cases\" | Hashnode"
description: "Discussion on \"Chapter 27 - Testing the Repository Implementation for the Insert and Delete Use Cases\". //test 5: Ensure repository calls artDao.insertArt() with the correct converted entity.\n    @Test\n    fun `insertArt calls dao insert with correct data`() =runTest {\n\n        //arrange\n        val art = Art(name = \"Maddy King\", artistName = \"Kimshi Y..."
url: "https://hashnode.com/posts/chapter-27-testing-the-repository-implementation-for-the-insert-and-delete-use-cases/6914bd30792c84c35e33f31c"
---

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

Discussion

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

//test 5: Ensure repository calls artDao.insertArt() with the correct converted entity. @Test fun \`insertArt calls dao insert with correct data\`() =runTest { //arrange val art = Art(name = "Maddy King", artistName = "Kimshi Y...

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

-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#kotlin-flow](https://hashnode.com/tag/kotlin-flow)
-   [#fake](https://hashnode.com/tag/fake)
-   [#repository](https://hashnode.com/tag/repository)
-   [#implementation](https://hashnode.com/tag/implementation)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)
-   [#testing](https://hashnode.com/tag/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.
