Skip to content

Java/IoT3Mobility: Test JSON ETSI ITS messages against their JSON schema#561

Merged
mathieu1fb merged 8 commits into
Orange-OpenSource:masterfrom
mathieu1fb:add-json-schema-validation
Jul 15, 2026
Merged

Java/IoT3Mobility: Test JSON ETSI ITS messages against their JSON schema#561
mathieu1fb merged 8 commits into
Orange-OpenSource:masterfrom
mathieu1fb:add-json-schema-validation

Conversation

@mathieu1fb

@mathieu1fb mathieu1fb commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

What's new

The conformity of JSON format ETSI ITS messages generated by the Java IoT3 Mobility SDK is now tested against their respective JSON schema.

Close #560

Note: the validation classes remain (e.g. CamValidator240) as they are useful at runtime to trigger errors when users try to generate incomplete messages, or receive incomplete or badly formatted ones. However, they did not guarantee the absence of implementation error in the SDK itself...


What to do

Read new test classes. The GitHub CI pipeline should already have validated the tests, but you can also run them on your machine.

Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
@mathieu1fb mathieu1fb self-assigned this Jul 10, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Kanban Jul 10, 2026

@fredOG-2A1 fredOG-2A1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi.
I ran four tests with Intellij.
Last one with MapemValidator200Test says:

Image

Ok for me.

@mathieu1fb

Copy link
Copy Markdown
Collaborator Author

Hi. I ran four tests with Intellij. Last one with MapemValidator200Test says:
Image

Ok for me.

Thanks Frédéric, but the validator tests are not the new ones: have you been able to check the new schema tests (CamSchemaTest, CpmSchemaTest, etc.) ?

@mathieu1fb
mathieu1fb requested a review from fredOG-2A1 July 15, 2026 07:36
@fredOG-2A1

Copy link
Copy Markdown
Member

Sorry, I struggled a lot with Intellij to run tests, so I ended up pcicking one without much thought.
I'll post more results in a few minutes.

@fredOG-2A1

Copy link
Copy Markdown
Member

Thanks for the tip to launch all tests.
It ended with 28 html reports, all are 100% success.

@mathieu1fb
mathieu1fb merged commit 1478ca4 into Orange-OpenSource:master Jul 15, 2026
121 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Kanban Jul 15, 2026
@mathieu1fb
mathieu1fb deleted the add-json-schema-validation branch July 15, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Java/IoT3Mobility: add JSON schema validation tests

2 participants