예제 #1
0
 @Test
 public void testConfigureUnsetProperties_DontOverwriterSetProperties() {
   IAtom atom = new NNAtom(Elements.CARBON);
   atom.setExactMass(13.0);
   IAtomType atomType = new NNAtomType(Elements.CARBON);
   atomType.setExactMass(12.0);
   AtomTypeManipulator.configureUnsetProperties(atom, atomType);
   Assert.assertEquals(13.0, atom.getExactMass(), 0.1);
 }