Polish
This commit is contained in:
parent
3b4c7a8906
commit
0717ea5ca5
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
package org.springframework.aot.generate;
|
package org.springframework.aot.generate;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
@ -158,8 +157,7 @@ class GeneratedClassesTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("unchecked")
|
void writeToInvokeTypeSpecCustomizer() {
|
||||||
void writeToInvokeTypeSpecCustomizer() throws IOException {
|
|
||||||
Consumer<TypeSpec.Builder> typeSpecCustomizer = mock();
|
Consumer<TypeSpec.Builder> typeSpecCustomizer = mock();
|
||||||
this.generatedClasses.addForFeatureComponent("one", TestComponent.class, typeSpecCustomizer);
|
this.generatedClasses.addForFeatureComponent("one", TestComponent.class, typeSpecCustomizer);
|
||||||
verifyNoInteractions(typeSpecCustomizer);
|
verifyNoInteractions(typeSpecCustomizer);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2022 the original author or authors.
|
* Copyright 2002-2023 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.
|
||||||
|
@ -48,7 +48,7 @@ class InMemoryGeneratedFilesTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void getGeneratedFilesReturnsFiles() throws Exception {
|
void getGeneratedFilesReturnsFiles() {
|
||||||
this.generatedFiles.addResourceFile("META-INF/test1", "test1");
|
this.generatedFiles.addResourceFile("META-INF/test1", "test1");
|
||||||
this.generatedFiles.addResourceFile("META-INF/test2", "test2");
|
this.generatedFiles.addResourceFile("META-INF/test2", "test2");
|
||||||
assertThat(this.generatedFiles.getGeneratedFiles(Kind.RESOURCE))
|
assertThat(this.generatedFiles.getGeneratedFiles(Kind.RESOURCE))
|
||||||
|
|
Loading…
Reference in New Issue