Skip to content

[CALCITE-3517] Rework DiffRepository as a JUnit extension#1962

Open
laurentgo wants to merge 1 commit intoapache:mainfrom
laurentgo:laurentgo/CALCITE-3517
Open

[CALCITE-3517] Rework DiffRepository as a JUnit extension#1962
laurentgo wants to merge 1 commit intoapache:mainfrom
laurentgo:laurentgo/CALCITE-3517

Conversation

@laurentgo
Copy link
Contributor

Introduce JUnit DiffRepositoryExtension extension to manage concurrent access to DiffRepository instances by test classes, and dumping their content on disk at the end of the test run.

DiffRepositoryExtension automatically injects DiffRepository instance to the constructor based on the test class, but a different repository can be used by using the DiffRepositoryName annotation.

Update all the tests using DiffRepository to leverage the extension.
Cleanup DiffRepository class, and remove all unused code.

@laurentgo laurentgo force-pushed the laurentgo/CALCITE-3517 branch 2 times, most recently from 244c11a to 2bb2e9f Compare May 12, 2020 20:58
Introduce JUnit DiffRepositoryExtension extension to manage concurrent
access to DiffRepository instances by test classes, and dumping their
content on disk at the end of the test run.

DiffRepositoryExtension automatically injects DiffRepository instance to
the constructor based on the test class, but a different repository can
be used by using the DiffRepositoryName annotation.

Update all the tests using DiffRepository to leverage the extension.

Cleanup DiffRepository class, and remove all unused code.
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.

1 participant