Skip to content

Refactored AssertJ assertions into more readable ones #2746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

krzyk
Copy link
Contributor

@krzyk krzyk commented Dec 31, 2022

Optimized AssertJ assertions into more readable ones (and giving better error messages) also replaced junit assumptions with AssertJ ones (for consistency).

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 31, 2022
@@ -96,22 +97,22 @@ void setup() {
@Test // DATAJPA-612
void shouldRespectConfiguredJpaEntityGraph() {

Assume.assumeTrue(currentEntityManagerIsAJpa21EntityManager(em));
assumeThat(currentEntityManagerIsAJpa21EntityManager(em)).isTrue();
Copy link
Member

Choose a reason for hiding this comment

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

Some lines like this one require reformatting because the tabs indents were replaced with space indents.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry for that, fixed in newest update

@krzyk krzyk force-pushed the optimize-assertj-assertions2 branch from dfc3a27 to 8b5ad62 Compare January 11, 2023 13:11
@krzyk krzyk force-pushed the optimize-assertj-assertions2 branch from 8b5ad62 to f6e1f10 Compare January 11, 2023 13:42
@gregturn gregturn closed this in c510e28 Jan 24, 2023
gregturn added a commit that referenced this pull request Jan 24, 2023
Related: #2746.
@gregturn
Copy link
Contributor

Thanks @krzyk! I just applied a touch of polishing and merged it to main.

@gregturn gregturn self-requested a review January 24, 2023 15:52
@gregturn gregturn self-assigned this Jan 24, 2023
@gregturn gregturn added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 24, 2023
@gregturn gregturn added this to the 3.1 M1 (2023.0.0) milestone Jan 24, 2023
gregturn added a commit that referenced this pull request Jan 24, 2023
@mp911de mp911de added type: task A general task and removed type: enhancement A general enhancement labels Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants