Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

atlasdb-tests-shared #6884

Merged
merged 3 commits into from
Dec 4, 2023
Merged

atlasdb-tests-shared #6884

merged 3 commits into from
Dec 4, 2023

Conversation

barisoyoruk
Copy link
Contributor

In this issue, we are transitioning our test classes from JUnit4 to JUnit5.

In this pull request, we are cleaning leftover implementations, mainly by removing V1s and renaming V2s. This PR is for package atlasdb-tests-shared

@barisoyoruk barisoyoruk self-assigned this Nov 30, 2023
@barisoyoruk barisoyoruk changed the base branch from develop to boy/junit5-cleanup6 November 30, 2023 22:28
@barisoyoruk barisoyoruk changed the base branch from boy/junit5-cleanup6 to develop November 30, 2023 22:35
Comment on lines +57 to +58
/* TODO(boyoruk): fix this test */
@Disabled
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was not running before because it was under the main package. Now it keeps failing for all tests so it should be further investigated after the clean up.

Comment on lines -68 to -75
@DataPoints
public static ConflictHandler[] conflictHandlers = ConflictHandler.values();
private static List<ConflictHandler> conflictHandlers() {
return Arrays.asList(ConflictHandler.values());
}

public CommitLockTest() {
super(TRM, TRM);
}

@Theory
Copy link
Contributor Author

@barisoyoruk barisoyoruk Nov 30, 2023

Choose a reason for hiding this comment

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

As far as I understand, theories work in the following way:

  • We obtain the Cartesian product of data points and feed them to each test.

Since we have only one data point, we didn't need to use the theory in the first place. Anyway, it is not supported in JUnit5, so just use the parameterized test.

@barisoyoruk barisoyoruk marked this pull request as ready for review December 1, 2023 10:09
@barisoyoruk barisoyoruk requested a review from LucasIME December 1, 2023 10:09
@barisoyoruk barisoyoruk changed the title Boy/junit5 cleanup7 atlasdb-tests-shared Dec 1, 2023
@barisoyoruk barisoyoruk mentioned this pull request Dec 1, 2023
63 tasks
@bulldozer-bot bulldozer-bot bot merged commit 05ba227 into develop Dec 4, 2023
@bulldozer-bot bulldozer-bot bot deleted the boy/junit5-cleanup7 branch December 4, 2023 11:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants