Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheAmg opened this issue Jun 20, 2024 · 0 comments
Open

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

TheAmg opened this issue Jun 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TheAmg
Copy link
Contributor

TheAmg commented Jun 20, 2024

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 :

  • Project : unlogged-spring-maven-demo
  • Class : OptionalOpsController
  • Method : orElseCase
    @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

@TheAmg TheAmg added the bug Something isn't working label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant