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")
    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);
    }

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ctg-bugIssue is a bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions