You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are writing integration test as part of the application. This integration test is not supposed to send any data over wire. So, there is need to mock the ServiceBusSenderAsyncClient. Application is using Micronaut framework. Micronaut provides MockBean annotation to create the MockBean. Below is the error when using MockBean :
Cannot apply AOP advice to final class. Class must be made non-final to support proxying: com.azure.messaging.servicebus.ServiceBusSenderAsyncClient
Actual Behaviour
Error received : Cannot apply AOP advice to final class. Class must be made non-final to support proxying: com.azure.messaging.servicebus.ServiceBusSenderAsyncClient
Expected Behaviour
The ServiceBusSenderAsyncClient should be successfully mocked and integration test should pass.
The text was updated successfully, but these errors were encountered:
We are writing integration test as part of the application. This integration test is not supposed to send any data over wire. So, there is need to mock the ServiceBusSenderAsyncClient. Application is using Micronaut framework. Micronaut provides MockBean annotation to create the MockBean. Below is the error when using MockBean :
Cannot apply AOP advice to final class. Class must be made non-final to support proxying: com.azure.messaging.servicebus.ServiceBusSenderAsyncClient
Actual Behaviour
Cannot apply AOP advice to final class. Class must be made non-final to support proxying: com.azure.messaging.servicebus.ServiceBusSenderAsyncClient
Expected Behaviour
The text was updated successfully, but these errors were encountered: