Skip to content
This repository was archived by the owner on Apr 4, 2022. It is now read-only.

Load SQ from JSON #5

@juliangruendner

Description

@juliangruendner

It should be possible to load any structured query from a json file and pass it to the translator for testing.

First create a Reader for the Structured Query and then add the reader to all tests.

This will change existing tests like

https://github.com/num-codex/codex-sq2cql/blob/main/src/test/java/de/numcodex/sq2cql/TranslatorTest.java#L277-L280

where instead of building the structured query in java it should be read from a file, which should be put under:
src/test/resources

Example Input SQs can be generated using:
https://github.com/num-codex/codex-testdata-to-sq/tree/v0.2.0

Metadata

Metadata

Assignees

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