Git Product home page Git Product logo

Comments (4)

gavvvr avatar gavvvr commented on July 28, 2024 3

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.

systemfreund avatar systemfreund commented on July 28, 2024 1

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.

sdeleuze avatar sdeleuze commented on July 28, 2024

@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.

sdeleuze avatar sdeleuze commented on July 28, 2024

Ok thanks I will have a look.

from tut-spring-boot-kotlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.