autocorrelationdescriptorchargetest.java

来自「化学图形处理软件」· Java 代码 · 共 42 行

JAVA
42
字号
package org.openscience.cdk.test.qsar.descriptors.molecular;import java.io.InputStream;import junit.framework.Test;import junit.framework.TestSuite;import org.openscience.cdk.ChemObject;import org.openscience.cdk.Molecule;import org.openscience.cdk.interfaces.IMolecule;import org.openscience.cdk.io.MDLV2000Reader;import org.openscience.cdk.qsar.DescriptorValue;import org.openscience.cdk.qsar.descriptors.molecular.AutocorrelationDescriptorCharge;import org.openscience.cdk.test.CDKTestCase;/** * @cdk.module test-qsar */public class AutocorrelationDescriptorChargeTest extends CDKTestCase {	public AutocorrelationDescriptorChargeTest(String name) {		super(name);	}	public static Test suite() {		return new TestSuite(AutocorrelationDescriptorChargeTest.class);	}		public void testcalculate_IAtomContainer() throws Exception {		String filename = "data/mdl/clorobenzene.mol";		InputStream ins = this.getClass().getClassLoader().getResourceAsStream(				filename);		MDLV2000Reader reader = new MDLV2000Reader(ins);		IMolecule container = (Molecule) reader.read((ChemObject) new Molecule());		DescriptorValue count = new AutocorrelationDescriptorCharge().calculate(container);		System.out.println(count.getValue());		fail("Not validated yet");	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?