spring-projects / spring-shell

Spring based shell
http://projects.spring.io/spring-shell/
Apache License 2.0
719 stars 395 forks source link

@CommandScan does not include commands during testing #1011

Closed Andras-Csanyi closed 6 months ago

Andras-Csanyi commented 6 months ago

Summary

@CommandScan does not work in testing, but @EnableCommand works

Case 1:

Case 2:

}


- execute the test linked above
- observe the result which does not lists the available commands

## Expected result:
- during testing both annotation should provide what is expected from it

If you can give me a few pointers where to look for I am ok to take a look at it and provide a fix.
jvalkeal commented 6 months ago

This is related/duplicate of #738 and #721. I'm in favour of closing?