unloggedio / unlogged-sdk

Unlogged SDK for recording code execution
https://unlogged.io
Apache License 2.0
152 stars 16 forks source link

Mock ignored for a method with Varags [RestTemplate call] #89

Closed TheAmg closed 1 week ago

TheAmg commented 1 week ago

Describe the bug

This can be observed on -

Reproduction steps

  1. Create and save a mock for the call restTemplate.getForObject in the above mentioned method.
  2. DirectInvoke the method

https://github.com/unloggedio/unlogged-sdk/assets/68552461/e6541313-ed11-422c-aa45-213fe737d973

Expected behavior

For the mock to be picked up correctly when directInvoked.

Additional context

No response

TheAmg commented 1 week ago

This is fixed on plugin 2024.2.11 and sdk 0.6.4.

https://github.com/unloggedio/unlogged-sdk/assets/68552461/e87e076a-207c-4e5a-9c60-823f1a5959ca