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

Reflections returns no results in unit test? #473

Open
i-make-robots opened this issue Jan 21, 2024 · 0 comments
Open

Reflections returns no results in unit test? #473

i-make-robots opened this issue Jan 21, 2024 · 0 comments

Comments

@i-make-robots
Copy link

Hi, everyone. I hope you're doing well.

My project is https://github.com/marginallyclever/robot-overlord-app

I have class com/marginallyclever/ro3/AllPanels.java which uses Reflections to find all JPanel in the package com.marginallyclever.ro3. Works great.

I have a unit test com/marginallyclever/ro3/TestAllPanels.java which calls on AllPanels. When it does, Reflections return no results.
I print out the classpath from the unit test and see that ./target/classes is missing, though Surefire and Jupiter assure me it's supposed to be there.

If anyone out there can tell me what I'm doing wrong - is it me? Is it the way I use Reflections? - I would be very grateful.

Thank you!

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

No branches or pull requests

1 participant