---
title: "Discussion on \"Typesafe API testing with Spring Boot, Kotlin and OpenFeign\" | Hashnode"
description: "Discussion on \"Typesafe API testing with Spring Boot, Kotlin and OpenFeign\". Keep your integration tests as close as possible to your application code, avoid mocking."
url: "https://hashnode.com/posts/typesafe-api-testing-with-spring-boot-kotlin-and-openfeign/61ee5abee247b2151e61ba80"
---

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

Discussion

# [Typesafe API testing with Spring Boot, Kotlin and OpenFeign](https://agilecoding.io/typesafe-api-testing-with-spring-boot-kotlin-and-openfeign?utm_source=hashnode&utm_medium=feed)

Keep your integration tests as close as possible to your application code, avoid mocking.

Jan 24, 2022 · 7 min read · agilecoding.io  
Read the article

-   [#spring](https://hashnode.com/tag/spring)
-   [#springboot](https://hashnode.com/tag/springboot)
-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#testing](https://hashnode.com/tag/testing)
-   [#tdd](https://hashnode.com/tag/tdd)

## Written by

[Klaus Lehner](https://hashnode.com/@Klu2)

@Klu2 · Vienna, AT

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

Developing people, organizations and software

Self-employed advisor for a holistic view on the whole software engineering process. Developing people, developing organizations, developing software. Still passionate coder.

## Responses 2

Markdown supported · ⌘↵ to post

[Flagrare](https://hashnode.com/@Flagrare)

[Jun 19, 2023](https://hashnode.com/posts/typesafe-api-testing-with-spring-boot-kotlin-and-openfeign/61ee5abee247b2151e61ba80/comment/64909839c167b41645fcfc05)

This approach is pretty good, although I wasn't able to make it work at all when using OpenAPI generator, because the files generated are classes, and not interfaces.

I wish I could use it, but I could not wrap my head around a way to do it.

[Pritesh Usadadiya](https://hashnode.com/@priteshusadadiya)

[Jan 27, 2022](https://hashnode.com/posts/typesafe-api-testing-with-spring-boot-kotlin-and-openfeign/61ee5abee247b2151e61ba80/comment/61f22aeb87fd2728e7cd739a)

This article was curated as a part of [43rd Issue of Software Testing Notes](https://softwaretestingnotes.substack.com/p/issue-43-software-testing-notes).
