unloggedio / unlogged-sdk

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

Assertions on test case runner will fail for "Object" return type #75

Open TheAmg opened 2 weeks ago

TheAmg commented 2 weeks ago

Describe the bug

Equal values for return Type "Object" will still cause test cases to fail.

Screenshot 2024-06-20 at 3 23 00 PM

Reproduction steps

  1. Save a replay case for a method that returns "Object" and run the case on test case runner.

Example :

    @RequestMapping("/orelse")
    public Object orElseCase() {
        return Optional.ofNullable(null).orElse("Default");
    }

Expected behavior

Equal values of Object should pass on the test runner

Additional context

No response