# How Do You Test Spring Compatibility?

DevFeed: [How Do You Test Spring Compatibility?](<https://devfeed.tech/articles/how-do-you-test-spring-compatibility-85047.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/spring-tests-native-backend/>)

Author: Shai Almog

Published: 2026-10-12T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Spring Framework](<https://devfeed.tech/topics/spring-framework.md>), [Spring Boot](<https://devfeed.tech/topics/spring-boot.md>), [Integration testing](<https://devfeed.tech/topics/integration-testing.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [article](<https://devfeed.tech/tags/article.md>), [build](<https://devfeed.tech/tags/build.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [controller](<https://devfeed.tech/tags/controller.md>), [http](<https://devfeed.tech/tags/http.md>), [spring](<https://devfeed.tech/tags/spring.md>), [test](<https://devfeed.tech/tags/test.md>)

## AI overview

The tutorial explains how to preserve application behavior when porting a Spring application to Codename One. It recommends recording expectations in Spring tests, reusing supported assertions against the port, and running them on both the JVM and compiled native backend. It also outlines unsupported test features and testing limitations.

## Source excerpt

Write behavior tests in your Spring application, then run the same assertions against its Codename One port. Check responses, failures and state on the JVM and in a native build.