예제 #1
0
 @Test
 public void testGetInstance_String_IChemObjectBuilder() throws Exception {
   String configFile = "org/openscience/cdk/config/data/structgen_atomtypes.xml";
   AtomTypeFactory atf = AtomTypeFactory.getInstance(configFile, new ChemObject().getBuilder());
   Assert.assertNotNull(atf);
   Assert.assertNotSame(0, atf.getSize());
 }
예제 #2
0
 @Test
 public void testGetInstance_InputStream_String_IChemObjectBuilder() throws Exception {
   String configFile = "org/openscience/cdk/config/data/structgen_atomtypes.xml";
   InputStream ins = this.getClass().getClassLoader().getResourceAsStream(configFile);
   AtomTypeFactory atf = AtomTypeFactory.getInstance(ins, "xml", new ChemObject().getBuilder());
   Assert.assertNotNull(atf);
   Assert.assertNotSame(0, atf.getSize());
 }
예제 #3
0
 @Test
 public void testAtomTypeFactory() {
   Assert.assertNotNull(atf);
   Assert.assertNotSame(atf.getSize(), 0);
 }
예제 #4
0
 @Test
 public void testGetSize() throws Exception {
   AtomTypeFactory atf = AtomTypeFactory.getInstance(new ChemObject().getBuilder());
   Assert.assertNotSame(0, atf.getSize());
 }