@Test public void testPreserveImplementedInterfaces() { Object object = new Test1Class(); Object newObject = VariableInterpolation.interpolate(new HashMap<>(), object); assertTrue(newObject instanceof Test1); object = new Test2Class(); newObject = VariableInterpolation.interpolate(new HashMap<>(), object); assertTrue(newObject instanceof Test1); object = new Test3Class(); newObject = VariableInterpolation.interpolate(new HashMap<>(), object); assertTrue(newObject instanceof Test1); }
public static <T> T interpolate(final Map<String, Object> values, final T object) { interpolator.setDefaultLookup(new MapOfMapStrLookup(values)); return proxy(object); }
VariableInterpolation { public static <T> T interpolate(final Map<String, Object> values, final T object) { interpolator.setDefaultLookup(new MapOfMapStrLookup(values)); return proxy(object); } }
VariableInterpolation { public static <T> T interpolate(final Map<String, Object> values, final T object) { interpolator.setDefaultLookup(new MapOfMapStrLookup(values)); return proxy(object); } private  VariableInterpolation(); }
VariableInterpolation { public static <T> T interpolate(final Map<String, Object> values, final T object) { interpolator.setDefaultLookup(new MapOfMapStrLookup(values)); return proxy(object); } private  VariableInterpolation(); static T interpolate(final Map<String, Object> values,
                                    final T object); static T proxy(final T instance); }
VariableInterpolation { public static <T> T interpolate(final Map<String, Object> values, final T object) { interpolator.setDefaultLookup(new MapOfMapStrLookup(values)); return proxy(object); } private  VariableInterpolation(); static T interpolate(final Map<String, Object> values,
                                    final T object); static T proxy(final T instance);  }