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