Sourabh Rawat
05/21/2021, 8:11 AMNo qualifying bean of type 'org.lognet.springboot.grpc.autoconfigure.GRpcServerProperties'
What am I missing?class CommonSupplyBasicIT2(private val gRpcServerProperties: GRpcServerProperties) : BehaviorSpec() {
override fun extensions() = listOf(SpringExtension)
private lateinit var channel: ManagedChannel
private lateinit var commonSupplyService: CommonSupplyAPIGrpcKt.CommonSupplyAPICoroutineStub
override fun beforeSpec(spec: Spec) {
super.beforeSpec(spec)
BlockHound.install() // Detect blocking calls
channel = ManagedChannelBuilder
.forAddress("localhost", gRpcServerProperties.runningPort)
.usePlaintext()
.build()
commonSupplyService = CommonSupplyAPIGrpcKt.CommonSupplyAPICoroutineStub(channel)
}
override fun afterSpec(spec: Spec) {
super.afterSpec(spec)
channel.shutdownNow()
}
}
GRpcServerProperties
with normal junit5 teststhanksforallthefish
05/21/2021, 8:15 AM@SpringBootTest
on top of your classSourabh Rawat
05/21/2021, 8:17 AM