List of usage examples for org.springframework.boot.cli.command.init ProjectGenerationRequest setOutput
void setOutput(String output)
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); }