Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Created a CDK style module test suite

  • Loading branch information...
commit a9a4aa8c1a3214432e8dfbc277f299b58b54d843 1 parent d7bb6f6
@egonw egonw authored
View
45 src/test/org/openscience/cdk/coverage/SignatureCoverageTest.java
@@ -0,0 +1,45 @@
+/* Copyright (C) 2010 Egon Willighagen <egonw@users.sf.net>
+ *
+ * Contact: cdk-devel@lists.sourceforge.net
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+package org.openscience.cdk.coverage;
+
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * TestSuite that tests whether all public methods in the core
+ * module are tested. Unlike Emma, it does not test that all code is
+ * tested, just all methods.
+ *
+ * @cdk.module test-signature
+ */
+public class SignatureCoverageTest extends CoverageAnnotationTest {
+
+ private final static String CLASS_LIST = "signature.javafiles";
+
+ @BeforeClass
+ public static void setUp() throws Exception {
+ loadClassList(CLASS_LIST, SignatureCoverageTest.class.getClassLoader());
+ }
+
+ @Test
+ public void testCoverage() {
+ super.runCoverageTest();
+ }
+
+}
View
45 src/test/org/openscience/cdk/modulesuites/MsignatureTests.java
@@ -0,0 +1,45 @@
+/* Copyright (C) 2010 Egon Willighagen <egonw@users.sf.net>
+ *
+ * Contact: cdk-devel@lists.sourceforge.net
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+package org.openscience.cdk.modulesuites;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
+import org.openscience.cdk.coverage.SignatureCoverageTest;
+import org.openscience.cdk.signature.AtomSignatureTest;
+import org.openscience.cdk.signature.MoleculeFromSignatureBuilderTest;
+import org.openscience.cdk.signature.MoleculeSignatureTest;
+import org.openscience.cdk.signature.OrbitTest;
+import org.openscience.cdk.signature.SignatureQuotientGraphTest;
+
+/**
+ * TestSuite that runs all the tests for the CDK <code>signature</code> module.
+ *
+ * @cdk.module test-signature
+ */
+@RunWith(value=Suite.class)
+@SuiteClasses(value={
+ SignatureCoverageTest.class,
+ SignatureQuotientGraphTest.class,
+ OrbitTest.class,
+ MoleculeSignatureTest.class,
+ MoleculeFromSignatureBuilderTest.class,
+ AtomSignatureTest.class
+})
+public class MsignatureTests {}
View
63 src/test/org/openscience/cdk/signature/SignatureSuite.java
@@ -1,63 +0,0 @@
-/* Copyright (C) 2009-2010 maclean {gilleain.torrance@gmail.com}
-*
-* Contact: cdk-devel@lists.sourceforge.net
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU Lesser General Public License
-* as published by the Free Software Foundation; either version 2.1
-* of the License, or (at your option) any later version.
-* All we ask is that proper credit is given for our work, which includes
-* - but is not limited to - adding the above copyright notice to the beginning
-* of your source code files, and to any copyright notice that you may distribute
-* with programs based on this work.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-*/
-package org.openscience.cdk.signature;
-
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.runner.RunWith;
-
-import org.junit.runners.Suite;
-
-/**
- * @cdk.module test-signature
- * @author maclean
- *
- */
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
- org.openscience.cdk.signature.AtomSignatureTest.class,
- org.openscience.cdk.signature.OrbitTest.class,
- org.openscience.cdk.signature.MoleculeFromSignatureBuilderTest.class,
- org.openscience.cdk.signature.MoleculeSignatureTest.class,
- org.openscience.cdk.signature.SignatureQuotientGraphTest.class
-})
-public class SignatureSuite {
-
- @BeforeClass
- public static void setUpClass() throws Exception {
- }
-
- @AfterClass
- public static void tearDownClass() throws Exception {
- }
-
- @Before
- public void setUp() throws Exception {
- }
-
- @After
- public void tearDown() throws Exception {
- }
-}
Please sign in to comment.
Something went wrong with that request. Please try again.