From: <raj...@us...> - 2008-09-15 12:40:52
|
Revision: 12320 http://cdk.svn.sourceforge.net/cdk/?rev=12320&view=rev Author: rajarshi Date: 2008-09-15 19:40:42 +0000 (Mon, 15 Sep 2008) Log Message: ----------- Added another test and annotation Modified Paths: -------------- cdk/branches/cdk-1.2.x/src/main/org/openscience/cdk/tools/CDKHydrogenAdder.java cdk/branches/cdk-1.2.x/src/test/org/openscience/cdk/tools/CDKHydrogenAdderTest.java Modified: cdk/branches/cdk-1.2.x/src/main/org/openscience/cdk/tools/CDKHydrogenAdder.java =================================================================== --- cdk/branches/cdk-1.2.x/src/main/org/openscience/cdk/tools/CDKHydrogenAdder.java 2008-09-15 19:38:01 UTC (rev 12319) +++ cdk/branches/cdk-1.2.x/src/main/org/openscience/cdk/tools/CDKHydrogenAdder.java 2008-09-15 19:40:42 UTC (rev 12320) @@ -88,6 +88,7 @@ } + @TestMethod("testInstance") public static CDKHydrogenAdder getInstance(IChemObjectBuilder builder) { if (!tables.containsKey(builder.getClass().getName())) tables.put(builder.getClass().getName(), new CDKHydrogenAdder(builder)); Modified: cdk/branches/cdk-1.2.x/src/test/org/openscience/cdk/tools/CDKHydrogenAdderTest.java =================================================================== --- cdk/branches/cdk-1.2.x/src/test/org/openscience/cdk/tools/CDKHydrogenAdderTest.java 2008-09-15 19:38:01 UTC (rev 12319) +++ cdk/branches/cdk-1.2.x/src/test/org/openscience/cdk/tools/CDKHydrogenAdderTest.java 2008-09-15 19:40:42 UTC (rev 12320) @@ -56,6 +56,10 @@ private final static CDKHydrogenAdder adder = CDKHydrogenAdder.getInstance(NoNotificationChemObjectBuilder.getInstance()); private final static CDKAtomTypeMatcher matcher = CDKAtomTypeMatcher.getInstance(NoNotificationChemObjectBuilder.getInstance()); + @Test + public void testInstance() { + Assert.assertNotNull(adder); + } @Test public void testMethane() throws CDKException { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |