Skip to content

Add AssertJ 3.27.7 and replace JUnit assertions in tests#11

Merged
SirCotare merged 1 commit into
enforce_jspecifyfrom
riker/pr-10-use-assertj
Jun 3, 2026
Merged

Add AssertJ 3.27.7 and replace JUnit assertions in tests#11
SirCotare merged 1 commit into
enforce_jspecifyfrom
riker/pr-10-use-assertj

Conversation

@SirCotare
Copy link
Copy Markdown
Member

Replaces all JUnit Assertions.assertEquals / assertTrue calls in the four test classes with AssertJ assertThat(...) equivalents, and adds assertj-core 3.27.7 as a test dependency in pom.xml.

Changes:

  • pom.xml — adds assertj.version property and assertj-core test dependency
  • JSpecifyAnnotationOrderCheckTest — converted to AssertJ
  • JSpecifyOnTopLevelTypesCheckTest — converted to AssertJ
  • JSpecifyMapStructMapperAnnotationCheckTest — converted to AssertJ
  • JSpecifyInlineTypeUseCheckTest — converted to AssertJ

All 6 tests in JSpecifyAnnotationOrderCheckTest verified green locally after the change.

⚠️ Merge this PR before the parent PR #10.

Parent PR: #10

CI runs full verification.

@ThoSap ThoSap self-requested a review June 3, 2026 10:33
Copy link
Copy Markdown
Member

@ThoSap ThoSap left a comment

Choose a reason for hiding this comment

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

LGTM 🙌🏼

@SirCotare SirCotare merged commit 23ccf97 into enforce_jspecify Jun 3, 2026
1 check passed
@SirCotare SirCotare deleted the riker/pr-10-use-assertj branch June 3, 2026 10:48
SirCotare added a commit that referenced this pull request Jun 3, 2026
* add common code style config

* update deps

* add jspecify rules and ability for local suppressions file

* add github test workflow

* fix project config

* fix project config

* 2.0.0-RC3

* add tests and checks for custom annotations and improve validation

* fully add jspecify and nullaway. cleanup some code too

* 2.0.0-RC4

* fix dependency scope for jspecify

* 2.0.0-RC5

* rename `Jspecify` classes and tests to `JSpecify`, update dependencies

* rename test resources to align `Jspecify` with `JSpecify` formatting

* Add AssertJ 3.27.7 and replace JUnit assertions in tests (#11)

Co-authored-by: Riker <riker@riker.local>

---------

Co-authored-by: AboutBits Tech <tech@aboutbits.it>
Co-authored-by: Riker <riker@riker.local>
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.

2 participants