the commands are available and the component does what is expected from it, meaning loaded via Spring Boot
Case 2:
modify this application in a way described below:
@EnableCommand(FooCommand.class)
@CommandScan
@SpringBootApplication
public class SpringshellApplication {
public static void main(String[] args) {
SpringApplication.run(SpringshellApplication.class, args);
}
}
- 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.
Summary
@CommandScan
does not work in testing, but@EnableCommand
worksCase 1:
Case 2:
@CommandScan @SpringBootApplication public class SpringshellApplication {
public static void main(String[] args) { SpringApplication.run(SpringshellApplication.class, args); }
}