I had defined a TestChannel Interface bellow
public interface TestChannel {
String CHANNEL_NAME = "test.channel";
@Input(value = CHANNEL_NAME)
SubscribableChannel channel();
}
And i try to autowired this channel in test.
@SpringBootTest
public class TestChannelHandlerTest extends BaseTest {
@Autowired
private TestChannel testChannel;
@Test
public void someTest() {
...
}
}
But TestChannel
bean in not found. My question is: how can i autowired any channels.