Add missing hint for converting String to URI
Closes gh-30627
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user