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

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

Introduction

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

Prototype

ContentType getContentType() 

Source Link

Document

Return the ContentType of this instance.

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 {//from  w w  w.ja  v  a 2s. c  o  m
        assertThat(entity.getContentType().getMimeType()).isEqualTo(mimeType);
    }
    assertThat(entity.getFileName()).isEqualTo(fileName);
}