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

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

Introduction

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

Prototype

List<String> getDependencies() 

Source Link

Document

The identifiers of the dependencies to include in the project.

Usage

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

@Test
public void generateProjectBadRequest() throws Exception {
    String jsonMessage = "Unknown dependency foo:bar";
    mockProjectGenerationError(400, jsonMessage);
    ProjectGenerationRequest request = new ProjectGenerationRequest();
    request.getDependencies().add("foo:bar");
    this.thrown.expect(ReportableException.class);
    this.thrown.expectMessage(jsonMessage);
    this.invoker.generate(request);
}