public void testItShouldProduceADifferentFingerprintWhenThePathDepthIsChanged() { Molecule naphthalene = Molecules.createNaphthalene(); fingerprinter.setMaximumPathDepth(6); BitSet fp6 = fingerprinter.getFingerprint(naphthalene); fingerprinter.setMaximumPathDepth(0); BitSet fpall = fingerprinter.getFingerprint(naphthalene); assertFalse(fp6.equals(fpall)); }
public void testItShouldCreateANonemptyFingerprintWhenPathDepthIsZero() { Molecule benzene = Molecules.createBenzene(); fingerprinter.setMaximumPathDepth(0); BitSet fingerprint = fingerprinter.getFingerprint(benzene); assertFalse(fingerprint.isEmpty()); }