InterfaceFieldImpl implements InterfaceField { @Override public InterfaceField set(Type type) { f.set(type); return this; } InterfaceFieldImpl(Field wrapped); @Override InterfaceField setParent(Interface parent); @Override Optional<Interface> getParent(); @Override String getName(); @Override Type getType(); @Override Set<Modifier> getModifiers(); @Override Optional<Javadoc> getJavadoc(); @Override Optional<Value<?>> getValue(); @Override List<AnnotationUsage> getAnnotations(); @Override List<Import> getImports(); @Override InterfaceField setName(String name); @Override InterfaceField set(Type type); @Override InterfaceField set(Javadoc doc); @Override InterfaceField set(Value<?> val); @Override InterfaceFieldImpl copy(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test void set() { final Javadoc javadoc = Javadoc.of("A"); instance().set(javadoc); assertEquals(javadoc, instance().getJavadoc().orElseThrow(NoSuchElementException::new)); }
@Test void testSet() { final Value<?> value = Value.ofNumber(1); instance().set(value); assertEquals(value, instance().getValue().orElseThrow(NoSuchElementException::new)); }