Skip to content

Flaky Test SpannerPersistentPropertyImplTests#testNullColumnName #4213

@pem70

Description

@pem70

Description

testNullColumnName asserts exact exception message content, including dynamically generated parts such as mock class names or memory-based identifiers produced by Mockito. These values can differ across runs, JVMs, or environments, causing the assertion to fail even though the intended behavior—throwing an exception for a null or empty field name—is correct.

How to Reproduce

Run the test with the NonDex plugin to randomize iteration order:

mvn -pl spring-cloud-gcp-data-spanner edu.illinois:nondex-maven-plugin:2.1.7:nondex -Dtest=com.google.cloud.spring.data.spanner.core.mapping.SpannerPersistentPropertyImplTests#testNullColumnName

Additional

I have a fix ready for this test. I'll add it to discussion later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions