Example usage for org.springframework.boot.cli.command.init ProjectGenerationResponse getFileName

List of usage examples for org.springframework.boot.cli.command.init ProjectGenerationResponse getFileName

Introduction

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

Prototype

String getFileName() 

Source Link

Document

The preferred file name to use to store the entity on disk or null if no preferred value has been set.

Usage

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

private static void assertProjectEntity(ProjectGenerationResponse entity, String mimeType, String fileName) {
    if (mimeType == null) {
        assertThat(entity.getContentType()).isNull();
    } else {//  w  ww  . j av  a  2  s  .  c  o  m
        assertThat(entity.getContentType().getMimeType()).isEqualTo(mimeType);
    }
    assertThat(entity.getFileName()).isEqualTo(fileName);
}