Skip to content
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

Add inner class test for JUnit entrypoints #1409

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Conversation

khatchad
Copy link
Contributor

Additional test for #1398.

@khatchad khatchad changed the title Add inner class test for JUnit entrypoints. Add inner class test for JUnit entrypoints Jun 21, 2024
Copy link
Member

@msridhar msridhar left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for this contribution!

assertEquals(
"< Application, Ljunit/JunitTests, test1()V >([<Application,Ljunit/JunitTests>])",
"< Application, Ljunit/JunitTests$A, test2()V >([<Application,Ljunit/JunitTests$A>])",
Copy link
Member

Choose a reason for hiding this comment

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

For readability can we switch these assertions to use the Hamcrest matcher assertThat and contains methods? You can see an example here. contains is varargs and checks that the list contents exactly equal the arguments in order. We can then also get rid of the check on entrypoints.size()

Copy link

Test Results

  695 files  ±0    695 suites  ±0   2h 59m 46s ⏱️ - 23m 6s
  735 tests ±0    718 ✅ ±0   17 💤 ±0  0 ❌ ±0 
4 294 runs  ±0  4 190 ✅ ±0  104 💤 ±0  0 ❌ ±0 

Results for commit b68c8ba. ± Comparison against base commit df5caa4.

@khatchad khatchad requested a review from msridhar June 24, 2024 18:28
Copy link
Member

@msridhar msridhar left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@msridhar msridhar enabled auto-merge (squash) June 24, 2024 18:32
@msridhar msridhar merged commit dba0a06 into wala:master Jun 24, 2024
10 checks passed
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.

None yet

2 participants