Merge branch '6.0.x'

This commit is contained in:
Sébastien Deleuze
2023-06-09 14:17:45 +02:00
6 changed files with 109 additions and 3 deletions

View File

@@ -16,6 +16,7 @@
package org.springframework.aot.hint.support;
import java.net.URI;
import java.time.LocalDate;
import org.junit.jupiter.api.BeforeEach;
@@ -52,4 +53,9 @@ class ObjectToObjectConverterRuntimeHintsTests {
assertThat(RuntimeHintsPredicates.reflection().onMethod(java.sql.Date.class.getMethod("valueOf", LocalDate.class))).accepts(this.hints);
}
@Test
void uriHasHints() throws NoSuchMethodException {
assertThat(RuntimeHintsPredicates.reflection().onConstructor(URI.class.getConstructor(String.class))).accepts(this.hints);
}
}