ISingleElectron electron = (ISingleElectron) original.clone();
@Test @Override public void testClone() throws Exception { ISingleElectron radical = (ISingleElectron) newChemObject(); Object clone = radical.clone(); Assert.assertNotNull(clone); Assert.assertTrue(clone instanceof ISingleElectron); }
ISingleElectron electron = (ISingleElectron) original.clone();
ISingleElectron electron = (ISingleElectron) original.clone();
ISingleElectron electron = (ISingleElectron) original.clone();
ISingleElectron electron = (ISingleElectron) original.clone();
ISingleElectron electron = (ISingleElectron) original.clone();
ISingleElectron electron = (ISingleElectron) original.clone();
ISingleElectron electron = (ISingleElectron) original.clone();
for (int i = 0; i < getSingleElectronCount(); ++i) { singleElectron = getSingleElectron(i); newSingleElectron = (ISingleElectron) singleElectron.clone(); if (singleElectron.getAtom() != null) { newSingleElectron.setAtom(atomMap.get(singleElectron.getAtom()));
for (int i = 0; i < getSingleElectronCount(); ++i) { singleElectron = getSingleElectron(i); newSingleElectron = (ISingleElectron) singleElectron.clone(); if (singleElectron.getAtom() != null) { newSingleElectron.setAtom(atomMap.get(singleElectron.getAtom()));
for (int i = 0; i < getSingleElectronCount(); ++i) { singleElectron = getSingleElectron(i); newSingleElectron = (ISingleElectron) singleElectron.clone(); if (singleElectron.getAtom() != null) { newSingleElectron.setAtom(atomMap.get(singleElectron.getAtom()));
for (int i = 0; i < getSingleElectronCount(); ++i) { singleElectron = getSingleElectron(i); newSingleElectron = (ISingleElectron) singleElectron.clone(); if (singleElectron.getAtom() != null) { newSingleElectron.setAtom(atomMap.get(singleElectron.getAtom()));
@Test public void testClone_IAtom() throws Exception { ISingleElectron radical = (ISingleElectron) newChemObject(); IAtom atom = radical.getBuilder().newInstance(IAtom.class, "N"); radical.setAtom(atom); // test cloning of atom ISingleElectron clone = (ISingleElectron) radical.clone(); Assert.assertNotSame(atom, clone.getAtom()); }
for (int i = 0; i < getSingleElectronCount(); ++i) { se = getSingleElectron(i); newSe = (ISingleElectron) se.clone(); if (se.getAtom() != null) { newSe.setAtom(clone.getAtom(getAtomNumber(se.getAtom())));