Browse Source

Polishing

pull/29282/head
Sam Brannen 3 years ago
parent
commit
66395502db
  1. 2
      spring-test/src/main/java/org/springframework/test/context/aot/AotTestAttributesCodeGenerator.java
  2. 3
      spring-test/src/main/java/org/springframework/test/context/aot/AotTestContextInitializersCodeGenerator.java
  3. 1
      spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java

2
spring-test/src/main/java/org/springframework/test/context/aot/AotTestAttributesCodeGenerator.java

@ -48,6 +48,8 @@ class AotTestAttributesCodeGenerator { @@ -48,6 +48,8 @@ class AotTestAttributesCodeGenerator {
private static final String GENERATED_SUFFIX = "Generated";
// TODO Consider an alternative means for specifying the name of the generated class.
// Ideally we would generate a class named: org.springframework.test.context.aot.GeneratedAotTestAttributes
static final String GENERATED_ATTRIBUTES_CLASS_NAME = AotTestAttributes.class.getName() + "__" + GENERATED_SUFFIX;
static final String GENERATED_ATTRIBUTES_METHOD_NAME = "getAttributes";

3
spring-test/src/main/java/org/springframework/test/context/aot/AotTestContextInitializersCodeGenerator.java

@ -63,8 +63,7 @@ class AotTestContextInitializersCodeGenerator { @@ -63,8 +63,7 @@ class AotTestContextInitializersCodeGenerator {
private static final String GENERATED_SUFFIX = "Generated";
// TODO Add support in ClassNameGenerator for supplying a predefined class name.
// There is a similar issue in Spring Boot where code relies on a generated name.
// TODO Consider an alternative means for specifying the name of the generated class.
// Ideally we would generate a class named: org.springframework.test.context.aot.GeneratedAotTestContextInitializers
static final String GENERATED_MAPPINGS_CLASS_NAME = AotTestContextInitializers.class.getName() + "__" + GENERATED_SUFFIX;

1
spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
package org.springframework.test.context.aot;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;

Loading…
Cancel
Save