@Test public void testClone() throws Exception { cloneManager.clone(def1, ClonePolicy.ALL); verify(deepCloneProcess, times(1)).clone(def1); cloneManager.clone(def1, ClonePolicy.DEFAULT); verify(defaultCloneProcess, times(1)).clone(def1); cloneManager.clone(def1, ClonePolicy.NONE); verify(noneCloneProcess, times(1)).clone(def1); }
@Override public <T> T clone(T source, ClonePolicy policy) { return cloneProcess(policy).clone(source); }
CloneManagerImpl implements CloneManager { @Override public <T> T clone(T source, ClonePolicy policy) { return cloneProcess(policy).clone(source); } }
CloneManagerImpl implements CloneManager { @Override public <T> T clone(T source, ClonePolicy policy) { return cloneProcess(policy).clone(source); } CloneManagerImpl(); @Inject  CloneManagerImpl(IDeepCloneProcess deepCloneProcess, DefaultCloneProcess defaultCloneProcess, NoneCloneProcess noneCloneProcess); }
CloneManagerImpl implements CloneManager { @Override public <T> T clone(T source, ClonePolicy policy) { return cloneProcess(policy).clone(source); } CloneManagerImpl(); @Inject  CloneManagerImpl(IDeepCloneProcess deepCloneProcess, DefaultCloneProcess defaultCloneProcess, NoneCloneProcess noneCloneProcess); @Override T clone(T source, ClonePolicy policy); @Override T clone(S source, T target, ClonePolicy policy); }
CloneManagerImpl implements CloneManager { @Override public <T> T clone(T source, ClonePolicy policy) { return cloneProcess(policy).clone(source); } CloneManagerImpl(); @Inject  CloneManagerImpl(IDeepCloneProcess deepCloneProcess, DefaultCloneProcess defaultCloneProcess, NoneCloneProcess noneCloneProcess); @Override T clone(T source, ClonePolicy policy); @Override T clone(S source, T target, ClonePolicy policy);  }