Comments (4)
Hi @sdeleuze . I logged in to Spring Jira using GitHub OAuth but could not find a "Create" button to add a new issue.
I think the 1st message here contains enough information to reproduce the problem so you can just copy it so Spring Jira. Complete Stacktrace is also here, just click the latest line in my original message to reveal it.
I figured out that the minimal requirement is @DataJpaTest
annotation, so here is the test which will fail with above stacktrace:
@ExtendWith(SpringExtension::class)
@DataJpaTest
class RepositoriesTests() {
@Test
fun `testName with space`() {
assertTrue(true)
}
}
from tut-spring-boot-kotlin.
I can confirm the problem. As soon as spring needs to proxy the test class with the transaction-handling aspect, this error occurs.
My current workaround is to rename all test methods (i.e. remove spaces, remove backticks) in tests where the implicit transaction auto-rollback after each test is active
I couldn't find the ticket on spring's issue tracker, so I've created one:
https://jira.spring.io/browse/SPR-17137
from tut-spring-boot-kotlin.
@gavvvr Indeed it seems there is Java 10+ issue here, even if it not clear yet if the bug is on Kotlin, Java or Spring Framework side. Could you please create an issue on https://jira.spring.io/projects/SPR/ with how to reproduce and the detailed stacktrace?
from tut-spring-boot-kotlin.
Ok thanks I will have a look.
from tut-spring-boot-kotlin.
Related Issues (20)
- Tutorial v2
- No default constructor for entity: : blog.Article HOT 5
- 官方教程中存在错误 HOT 3
- Update Gradle build to use the Kotlin DSL
- BlogProperties.kt code is referenced before it is created in tutorial HOT 3
- Web dependency not found
- MediaType.APPLICATION_JSON_UTF8 is Deprecated HOT 1
- Gradle sync fails HOT 1
- [Build Error ] Kotlin spring boot build error ! Help me . HOT 1
- Writing your first Kotlin controller section does not give the desired result HOT 5
- `freeCompilerArgs` should use `+=` operator HOT 4
- Junit-Platform.properties file not necessary scince junit-jupiter 5.0+ HOT 1
- Error using @Scheduled in kotiln suspend HOT 1
- Question: More details to note - why don't use immutable data classes HOT 2
- what's the right way to use kotlin data class to instance different impl of an interface HOT 2
- Fix H2 database support with Spring Boot 2.7+ HOT 1
- Upgrade to Spring Boot 2.7.1
- The document must be modified.
- Enable Annotation Processor not work HOT 4
- [issue] error: unresolved reference: springframework on compilaton HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tut-spring-boot-kotlin.