Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

response.contentType in FunctionalTest is null  #3

@francisdb

Description

@francisdb

It seems that the contentType is not set in functional tests, works for pure play controllers

    @Test
    public void testTest() {
        Response response = GET("/rest/v1/test");
        assertIsOk(response);
        // this part fails
        //assertContentType("application/json", response);
        System.out.println(response.contentType);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions