From: <eg...@us...> - 2007-01-16 20:43:53
|
Revision: 7723 http://svn.sourceforge.net/cdk/?rev=7723&view=rev Author: egonw Date: 2007-01-16 12:43:51 -0800 (Tue, 16 Jan 2007) Log Message: ----------- Added missing JUnit tests. Modified Paths: -------------- trunk/cdk/src/org/openscience/cdk/test/qsar/DescriptorSpecificationTest.java Modified: trunk/cdk/src/org/openscience/cdk/test/qsar/DescriptorSpecificationTest.java =================================================================== --- trunk/cdk/src/org/openscience/cdk/test/qsar/DescriptorSpecificationTest.java 2007-01-16 20:36:11 UTC (rev 7722) +++ trunk/cdk/src/org/openscience/cdk/test/qsar/DescriptorSpecificationTest.java 2007-01-16 20:43:51 UTC (rev 7723) @@ -23,6 +23,7 @@ import junit.framework.Test; import junit.framework.TestSuite; +import org.openscience.cdk.qsar.DescriptorSpecification; import org.openscience.cdk.test.CDKTestCase; /** @@ -38,6 +39,52 @@ return new TestSuite(DescriptorSpecificationTest.class); } +// DescriptorSpecification: missing the expected test method: testGetImplementationTitle +// DescriptorSpecification: missing the expected test method: testGetImplementationVendor +// DescriptorSpecification: missing the expected test method: testGetSpecificationReference +// DescriptorSpecification: missing the expected test method: testGetImplementationIdentifier +// DescriptorSpecification: missing the expected test method: + + private final static String DESC_REF = "bla"; + private final static String DESC_IMPL_TITLE = "bla2"; + private final static String DESC_IMPL_VENDOR = "bla3"; + private final static String DESC_IMPL_ID = "bla4"; + + public void testDescriptorSpecification_String_String_String_String() { + DescriptorSpecification spec = new DescriptorSpecification( + DESC_REF, DESC_IMPL_TITLE, DESC_IMPL_ID, DESC_IMPL_VENDOR + ); + assertNotNull(spec); + } + + public void testGetImplementationVendor() { + DescriptorSpecification spec = new DescriptorSpecification( + DESC_REF, DESC_IMPL_TITLE, DESC_IMPL_ID, DESC_IMPL_VENDOR + ); + assertEquals(DESC_IMPL_VENDOR, spec.getImplementationVendor()); + } + + public void testGetSpecificationReference() { + DescriptorSpecification spec = new DescriptorSpecification( + DESC_REF, DESC_IMPL_TITLE, DESC_IMPL_ID, DESC_IMPL_VENDOR + ); + assertEquals(DESC_REF, spec.getSpecificationReference()); + } + + public void testGetImplementationIdentifier() { + DescriptorSpecification spec = new DescriptorSpecification( + DESC_REF, DESC_IMPL_TITLE, DESC_IMPL_ID, DESC_IMPL_VENDOR + ); + assertEquals(DESC_IMPL_ID, spec.getImplementationIdentifier()); + } + + public void testGetImplementationTitle() { + DescriptorSpecification spec = new DescriptorSpecification( + DESC_REF, DESC_IMPL_TITLE, DESC_IMPL_ID, DESC_IMPL_VENDOR + ); + assertEquals(DESC_IMPL_TITLE, spec.getImplementationTitle()); + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |