Skip to content

Weird integration test for @PostMapping with Spring Security #2729

Open
@ancavar

Description

@ancavar

To Reproduce

  1. Add Spring Security.
  2. Generate integration test for @PostMapping, e.g.
    @PostMapping("/demo")
    public String demo() {
        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: ")
    public void testDemo() {
        String actual = nameController.demo();

        String expected = "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