@Test public void testGetOrCreateWriter_Setter() { TargetPropertyWriter defaultWriter = (t, v) -> {}; TargetPropertyWriterFactory<C1> factory = new TargetPropertyWriterFactory<>(C1.class, mock(ObjEntity.class)); TargetPropertyWriter setter = factory.getOrCreateWriter("me", "dbDummy", () -> defaultWriter); assertNotSame(defaultWriter, setter); assertSame(setter, factory.getOrCreateWriter("me", "dbDummy", () -> defaultWriter)); }
public TargetPropertyWriter getOrCreateWriter(String property) { return getOrCreateWriter(property, property, () -> NULL_WRITER); }
TargetPropertyWriterFactory { public TargetPropertyWriter getOrCreateWriter(String property) { return getOrCreateWriter(property, property, () -> NULL_WRITER); } }
TargetPropertyWriterFactory { public TargetPropertyWriter getOrCreateWriter(String property) { return getOrCreateWriter(property, property, () -> NULL_WRITER); } TargetPropertyWriterFactory(Class<T> type, ObjEntity entity); }
TargetPropertyWriterFactory { public TargetPropertyWriter getOrCreateWriter(String property) { return getOrCreateWriter(property, property, () -> NULL_WRITER); } TargetPropertyWriterFactory(Class<T> type, ObjEntity entity); TargetPropertyWriter getOrCreateWriter(String property); TargetPropertyWriter getOrCreateWriter(
            String propertyName,
            String dbName,
            Supplier<TargetPropertyWriter> defaultWriterSupplier); }
TargetPropertyWriterFactory { public TargetPropertyWriter getOrCreateWriter(String property) { return getOrCreateWriter(property, property, () -> NULL_WRITER); } TargetPropertyWriterFactory(Class<T> type, ObjEntity entity); TargetPropertyWriter getOrCreateWriter(String property); TargetPropertyWriter getOrCreateWriter(
            String propertyName,
            String dbName,
            Supplier<TargetPropertyWriter> defaultWriterSupplier);  }