Skip to content

Conversation

@smaye81
Copy link
Contributor

@smaye81 smaye81 commented Jun 3, 2025

This updates protovalidate-java to the new Protovalidate v0.12.0 release.

The v0.12.0 release added new conformance tests for validating rules on incorrect field types. As a result, this uncovered the same bug that was present in protovalidate-go (see bufbuild/protovalidate-go#247 for context).


@BeforeAll
private static void setUp() throws Exception {
public static void setUp() throws Exception {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of a sudden this warning was showing when running tests:

Gradle Test Executor 18 STANDARD_ERROR
    Jun 03, 2025 3:44:38 PM org.junit.platform.launcher.core.DiscoveryIssueNotifier logIssues
    WARNING: TestEngine with ID 'junit-jupiter' encountered a non-critical issue during test discovery:

    (1) [WARNING] @BeforeAll method 'private static void build.buf.protovalidate.FormatTest.setUp() throws java.lang.Exception' should not be private. This will be disallowed in a future release.
        Source: MethodSource [className = 'build.buf.protovalidate.FormatTest', methodName = 'setUp', methodParameterTypes = '']
                at build.buf.protovalidate.FormatTest.setUp(SourceFile:0)

@smaye81 smaye81 merged commit 529a5c4 into main Jun 4, 2025
5 checks passed
@smaye81 smaye81 deleted the sayers/pv_0.12.0 branch June 4, 2025 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants