Skip to content

Reflections returns no results in unit test? #473

@i-make-robots

Description

@i-make-robots

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions