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.
Description
testNullColumnNameasserts 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:
Additional
I have a fix ready for this test. I'll add it to discussion later.