parent
1ffc96be8c
commit
e7e843cae2
|
|
@ -121,7 +121,7 @@ public class ReflectionHintsSerializerTests {
|
||||||
void queriedMethods() throws JSONException {
|
void queriedMethods() throws JSONException {
|
||||||
ReflectionHints hints = new ReflectionHints();
|
ReflectionHints hints = new ReflectionHints();
|
||||||
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
|
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
|
||||||
(b) -> b.withMode(ExecutableMode.INTROSPECT)));
|
b -> b.withMode(ExecutableMode.INTROSPECT)));
|
||||||
|
|
||||||
assertEquals("""
|
assertEquals("""
|
||||||
[
|
[
|
||||||
|
|
@ -142,7 +142,7 @@ public class ReflectionHintsSerializerTests {
|
||||||
void methods() throws JSONException {
|
void methods() throws JSONException {
|
||||||
ReflectionHints hints = new ReflectionHints();
|
ReflectionHints hints = new ReflectionHints();
|
||||||
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
|
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
|
||||||
(b) -> b.withMode(ExecutableMode.INVOKE)));
|
b -> b.withMode(ExecutableMode.INVOKE)));
|
||||||
|
|
||||||
assertEquals("""
|
assertEquals("""
|
||||||
[
|
[
|
||||||
|
|
@ -162,9 +162,9 @@ public class ReflectionHintsSerializerTests {
|
||||||
void methodAndQueriedMethods() throws JSONException {
|
void methodAndQueriedMethods() throws JSONException {
|
||||||
ReflectionHints hints = new ReflectionHints();
|
ReflectionHints hints = new ReflectionHints();
|
||||||
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
|
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
|
||||||
(b) -> b.withMode(ExecutableMode.INVOKE)));
|
b -> b.withMode(ExecutableMode.INVOKE)));
|
||||||
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
|
hints.registerType(Integer.class, builder -> builder.withMethod("parseInt", List.of(TypeReference.of(String.class)),
|
||||||
(b) -> b.withMode(ExecutableMode.INTROSPECT)));
|
b -> b.withMode(ExecutableMode.INTROSPECT)));
|
||||||
|
|
||||||
assertEquals("""
|
assertEquals("""
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue