Skip to content

Issue when running grails test-app (2.3.11) #48

@imadi

Description

@imadi

Hi I have this piece of code in SampleController.groovy which downloads sample excel
def xls = new WebXlsxExporter(filePath).with {
response.setHeader "Content-disposition", "attachment; filename=samole.xlsx"
response.contentType = 'application/vnd.ms-excel'
LOG.info("sample Excel")
save(response.outputStream)
}
Its working normally. But when I do grails test-app I am getting error like
No signature of method: SampleController.save() is applicable for argument types: (org.springframework.mock.web.MockHttpServletResponse$ResponseServletOutputStream) values: [org.springframework.mock.web.MockHttpServletResponse$ResponseServletOutputStream@12b7c618]

I am using excel-export:0.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions