Skip to content

Commit

Permalink
Replacing the deprecated 'junit.framework' with the newer 'org.junit'.
Browse files Browse the repository at this point in the history
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Aug 1, 2013
1 parent 9cd9ce4 commit dd46cca
Show file tree
Hide file tree
Showing 27 changed files with 33 additions and 33 deletions.
Expand Up @@ -91,8 +91,8 @@ public void testGenerateFingerprint() throws InvalidSmilesException, CDKExceptio
ShortestPathFingerprinter fingerprint = new ShortestPathFingerprinter(1024);
BitSet fingerprint1;
fingerprint1 = fingerprint.getBitFingerprint(molecule).asBitSet();
junit.framework.Assert.assertEquals(125, fingerprint1.cardinality());
junit.framework.Assert.assertEquals(1024, fingerprint1.size());
org.junit.Assert.assertEquals(125, fingerprint1.cardinality());
org.junit.Assert.assertEquals(1024, fingerprint1.size());
}

/**
Expand All @@ -116,7 +116,7 @@ public void testGenerateFingerprintIsSubset() throws InvalidSmilesException, CDK
fingerprintQ = fingerprint.getBitFingerprint(moleculeQ).asBitSet();
fingerprintT = fingerprint.getBitFingerprint(moleculeT).asBitSet();

junit.framework.Assert.assertTrue(FingerprinterTool.isSubset(fingerprintT, fingerprintQ));
org.junit.Assert.assertTrue(FingerprinterTool.isSubset(fingerprintT, fingerprintQ));
}

/**
Expand All @@ -142,7 +142,7 @@ public void testGenerateFingerprintIsNotASubset1() throws InvalidSmilesException
BitSet fingerprintT;
fingerprintQ = fingerprint.getBitFingerprint(moleculeQ).asBitSet();
fingerprintT = fingerprint.getBitFingerprint(moleculeT).asBitSet();
junit.framework.Assert.assertFalse(FingerprinterTool.isSubset(fingerprintT, fingerprintQ));
org.junit.Assert.assertFalse(FingerprinterTool.isSubset(fingerprintT, fingerprintQ));
}

@Test
Expand All @@ -154,7 +154,7 @@ public void testGenerateFingerprintAnthracene() throws InvalidSmilesException, E
ShortestPathFingerprinter fingerprint = new ShortestPathFingerprinter(1024);
BitSet fingerprint1;
fingerprint1 = fingerprint.getBitFingerprint(molecule).asBitSet();
junit.framework.Assert.assertEquals(10, fingerprint1.cardinality());
org.junit.Assert.assertEquals(10, fingerprint1.cardinality());
}

@Test
Expand All @@ -166,7 +166,7 @@ public void testGenerateFingerprintNaphthalene() throws InvalidSmilesException,
ShortestPathFingerprinter fingerprint = new ShortestPathFingerprinter(1024);
BitSet fingerprint1;
fingerprint1 = fingerprint.getBitFingerprint(molecule).asBitSet();
junit.framework.Assert.assertEquals(8, fingerprint1.cardinality());
org.junit.Assert.assertEquals(8, fingerprint1.cardinality());
}

@Test
Expand All @@ -179,7 +179,7 @@ public void testGenerateFingerprintMultiphtalene() throws InvalidSmilesException
ShortestPathFingerprinter fingerprint = new ShortestPathFingerprinter(1024);
BitSet fingerprint1;
fingerprint1 = fingerprint.getBitFingerprint(molecule).asBitSet();
junit.framework.Assert.assertEquals(15, fingerprint1.cardinality());
org.junit.Assert.assertEquals(15, fingerprint1.cardinality());
}

@Test
Expand Down
Expand Up @@ -2,7 +2,7 @@

import java.util.Set;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Test;
import org.openscience.cdk.CDKTestCase;
Expand Down
Expand Up @@ -24,7 +24,7 @@

import java.util.Arrays;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Test;
import org.openscience.cdk.CDKTestCase;
Expand Down
Expand Up @@ -3,7 +3,7 @@
import java.util.HashSet;
import java.util.Set;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Test;
import org.openscience.cdk.CDKTestCase;
Expand Down
2 changes: 1 addition & 1 deletion src/test/org/openscience/cdk/group/AtomGroupTests.java
Expand Up @@ -22,7 +22,7 @@
*/
package org.openscience.cdk.group;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Test;
import org.openscience.cdk.CDKTestCase;
Expand Down
@@ -1,6 +1,6 @@
package org.openscience.cdk.group;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Test;
import org.openscience.cdk.CDKTestCase;
Expand Down
Expand Up @@ -24,7 +24,7 @@

import java.util.Arrays;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Test;
import org.openscience.cdk.CDKTestCase;
Expand Down
Expand Up @@ -3,7 +3,7 @@
import java.util.HashSet;
import java.util.Set;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Test;
import org.openscience.cdk.CDKTestCase;
Expand Down
2 changes: 1 addition & 1 deletion src/test/org/openscience/cdk/group/BondGroupTests.java
Expand Up @@ -22,7 +22,7 @@
*/
package org.openscience.cdk.group;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Test;
import org.openscience.cdk.CDKTestCase;
Expand Down
Expand Up @@ -24,7 +24,7 @@

import java.util.Arrays;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Test;

Expand Down
Expand Up @@ -42,7 +42,7 @@
import javax.vecmath.Point2d;
import java.io.InputStream;

import static junit.framework.Assert.assertNotNull;
import static org.junit.Assert.assertNotNull;

/** @cdk.module test-sdg */
public class HydrogenPlacerTest extends CDKTestCase {
Expand Down
Expand Up @@ -23,7 +23,7 @@
package org.openscience.cdk.modeling.builder3d;


import static junit.framework.Assert.*;
import static org.junit.Assert.*;

import java.util.List;

Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -30,7 +30,7 @@

import javax.vecmath.Point2d;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.BeforeClass;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down
Expand Up @@ -24,7 +24,7 @@
import java.awt.Rectangle;
import java.util.List;

import junit.framework.Assert;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;
Expand Down

0 comments on commit dd46cca

Please sign in to comment.