I have a component scan configuration as this:
@Configuration
@ComponentScan(basePackageClasses = {ITest.class},
includeFilters = {@C
Instead of scanning an annotated interface, you can create a dummy implementation and annotate it accordingly:
@JdbiRepository
public class DummyTest implements ITest {
public Integer deleteUserSession(String id) {
// nothing here, just being dummy
}
}
Then, scan the dummy implementation basePackageClasses = {DummyTest.class}.
It's a bit of a workaround, but very simple and good enough for test purposes (as seems to be here).