diff --git a/initializr-generator-test/src/test/java/io/spring/initializr/generator/test/project/JvmModuleAssertTests.java b/initializr-generator-test/src/test/java/io/spring/initializr/generator/test/project/JvmModuleAssertTests.java index 43c38f8c..91c7d12e 100644 --- a/initializr-generator-test/src/test/java/io/spring/initializr/generator/test/project/JvmModuleAssertTests.java +++ b/initializr-generator-test/src/test/java/io/spring/initializr/generator/test/project/JvmModuleAssertTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -136,7 +136,7 @@ class JvmModuleAssertTests { .isThrownBy(() -> assertThat(forJavaProject(root)).testSource("com.acme", "DemoTests")); } - private AssertProvider forJavaProject(Path root) { + private AssertProvider> forJavaProject(Path root) { return () -> new JvmModuleAssert(root, JAVA_LANGUAGE); } diff --git a/initializr-web/src/test/java/io/spring/initializr/web/project/ProjectGenerationInvokerTests.java b/initializr-web/src/test/java/io/spring/initializr/web/project/ProjectGenerationInvokerTests.java index 3b9616f9..4419273e 100644 --- a/initializr-web/src/test/java/io/spring/initializr/web/project/ProjectGenerationInvokerTests.java +++ b/initializr-web/src/test/java/io/spring/initializr/web/project/ProjectGenerationInvokerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -60,7 +60,7 @@ public class ProjectGenerationInvokerTests { private static final InitializrMetadata metadata = InitializrMetadataTestBuilder.withDefaults().build(); - private ProjectGenerationInvoker invoker; + private ProjectGenerationInvoker invoker; private AnnotationConfigApplicationContext context; @@ -69,7 +69,7 @@ public class ProjectGenerationInvokerTests { @BeforeEach void setup() { setupContext(); - this.invoker = new ProjectGenerationInvoker(this.context, this.eventPublisher, + this.invoker = new ProjectGenerationInvoker<>(this.context, this.eventPublisher, new DefaultProjectRequestToDescriptionConverter()); }