We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 737967f commit c5fc0a5Copy full SHA for c5fc0a5
spring-core-test/src/main/java/org/springframework/aot/test/generate/TestGenerationContext.java
@@ -51,12 +51,21 @@ public TestGenerationContext(ClassNameGenerator classNameGenerator) {
51
52
/**
53
* Create an instance using the specified {@code target}.
54
- * @param target the default target class to use
+ * @param target the default target class name to use
55
*/
56
public TestGenerationContext(ClassName target) {
57
this(new ClassNameGenerator(target));
58
}
59
60
+ /**
61
+ * Create an instance using the specified {@code target}.
62
+ * @param target the default target class to use
63
+ */
64
+ public TestGenerationContext(Class<?> target) {
65
+ this(ClassName.get(target));
66
+ }
67
+
68
69
70
* Create an instance using {@link #TEST_TARGET} as the {@code target}.
71
0 commit comments