From: <eg...@us...> - 2007-01-04 13:13:24
|
Revision: 7627 http://svn.sourceforge.net/cdk/?rev=7627&view=rev Author: egonw Date: 2007-01-04 05:13:22 -0800 (Thu, 04 Jan 2007) Log Message: ----------- Added test based on patch #1627636 by Ola. Modified Paths: -------------- trunk/cdk/src/org/openscience/cdk/test/io/cml/CMLRoundTripTest.java Modified: trunk/cdk/src/org/openscience/cdk/test/io/cml/CMLRoundTripTest.java =================================================================== --- trunk/cdk/src/org/openscience/cdk/test/io/cml/CMLRoundTripTest.java 2007-01-04 12:40:58 UTC (rev 7626) +++ trunk/cdk/src/org/openscience/cdk/test/io/cml/CMLRoundTripTest.java 2007-01-04 13:13:22 UTC (rev 7627) @@ -430,7 +430,7 @@ assertEquals(1, roundTrippedReactant.getAtomCount()); } - public void testDescriptorValue() { + public void testDescriptorValue_QSAR() { Molecule molecule = MoleculeFactory.makeBenzene(); IMolecularDescriptor descriptor = new WeightDescriptor(); @@ -446,5 +446,18 @@ assertNotNull(roundTrippedMol.getProperty(descriptor.getSpecification())); } + + public void testDescriptorValue() { + Molecule molecule = MoleculeFactory.makeBenzene(); + + String propertyName = "testKey"; + String propertyValue = "testValue"; + + molecule.setProperty(propertyName, propertyValue); + IMolecule roundTrippedMol = roundTripMolecule(molecule); + + assertNotNull(roundTrippedMol.getProperty(propertyName)); + assertEquals(propertyValue, roundTrippedMol.getProperty(propertyName)); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |