Skip to content

Weird integration test for @PostMapping with Spring Security #2729

Description

@ancavar

To Reproduce

  1. Add Spring Security.
  2. Generate integration test for @PostMapping, e.g.
@PostMapping("/demo")
publicStringdemo() {
return"demo";
}

Expected behavior

Probably shouldn't have this test.

Actual behavior

///region FUZZER: SUCCESSFUL EXECUTIONS for method demo()/** * @utbot.classUnderTest {@link NameController} * @utbot.methodUnderTest {@link NameController#demo()} */@Test@DisplayName("demo: ")
publicvoidtestDemo() {
Stringactual = nameController.demo();
Stringexpected = "demo";
assertEquals(expected, actual);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    ctg-bugIssue is a bug

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions