Example usage for org.springframework.boot.cli.command.init ProjectGenerationRequest setOutput

List of usage examples for org.springframework.boot.cli.command.init ProjectGenerationRequest setOutput

Introduction

In this page you can find the example usage for org.springframework.boot.cli.command.init ProjectGenerationRequest setOutput.

Prototype

void setOutput(String output) 

Source Link

Usage

From source file:org.springframework.boot.cli.command.init.InitializrServiceTests.java

@Test
public void generateProjectCustomTargetFilename() throws Exception {
    ProjectGenerationRequest request = new ProjectGenerationRequest();
    request.setOutput("bar.zip");
    MockHttpProjectGenerationRequest mockHttpRequest = new MockHttpProjectGenerationRequest("application/xml",
            null);/*from  www . j ava2 s.c  om*/
    ProjectGenerationResponse entity = generateProject(request, mockHttpRequest);
    assertProjectEntity(entity, mockHttpRequest.contentType, null);
}