mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-21 10:59:59 +08:00
Polish
This commit is contained in:
@@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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"));
|
.isThrownBy(() -> assertThat(forJavaProject(root)).testSource("com.acme", "DemoTests"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private AssertProvider<AbstractJvmModuleAssert> forJavaProject(Path root) {
|
private AssertProvider<AbstractJvmModuleAssert<?>> forJavaProject(Path root) {
|
||||||
return () -> new JvmModuleAssert(root, JAVA_LANGUAGE);
|
return () -> new JvmModuleAssert(root, JAVA_LANGUAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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 static final InitializrMetadata metadata = InitializrMetadataTestBuilder.withDefaults().build();
|
||||||
|
|
||||||
private ProjectGenerationInvoker invoker;
|
private ProjectGenerationInvoker<ProjectRequest> invoker;
|
||||||
|
|
||||||
private AnnotationConfigApplicationContext context;
|
private AnnotationConfigApplicationContext context;
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ public class ProjectGenerationInvokerTests {
|
|||||||
@BeforeEach
|
@BeforeEach
|
||||||
void setup() {
|
void setup() {
|
||||||
setupContext();
|
setupContext();
|
||||||
this.invoker = new ProjectGenerationInvoker(this.context, this.eventPublisher,
|
this.invoker = new ProjectGenerationInvoker<>(this.context, this.eventPublisher,
|
||||||
new DefaultProjectRequestToDescriptionConverter());
|
new DefaultProjectRequestToDescriptionConverter());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user