GH-939 & GH-956 Fix Kotlin function registration regression

Resolves #939
Resolves #956

polishing
This commit is contained in:
Oleg Zhurakousky
2022-11-14 15:01:19 +01:00
parent 13c79f5283
commit 4273d86f5c
7 changed files with 59 additions and 531 deletions

View File

@@ -36,16 +36,6 @@ public class FunctionRegistrationTests {
assertThat(registration.getNames()).contains("foos");
}
@Test
public void wrap() {
FunctionRegistration<Foos> registration = new FunctionRegistration<>(new Foos(),
"foos").type(FunctionType.of(Foos.class).getType());
FunctionRegistration<?> other = registration.wrap();
assertThat(registration.getType().isWrapper()).isFalse();
assertThat(other.getType().isWrapper()).isTrue();
assertThat(other.getTarget()).isNotEqualTo(registration.getTarget());
}
private static class Foos implements Function<Integer, String> {
@Override