Permalink
Browse files

Extended test to highlight that I forgot to implement the actual read…

… method

Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information...
1 parent 7b46968 commit b11336abdec9d8fc5ab8b6b4c1d927d6932c3c3e @egonw egonw committed with rajarshi Jun 25, 2011
Showing with 25 additions and 2 deletions.
  1. +23 −2 src/test/data/owl/molecule.n3
  2. +2 −0 src/test/org/openscience/cdk/io/rdf/CDKOWLReaderTest.java
@@ -4,6 +4,27 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-<http://cdk.sf.net/model/molecule/1>
- a <cdk:Molecule> .
+<http://example.com/30136842/NNMolecule/5761618>
+ a cdk:Molecule ;
+ cdk:hasAtom <http://example.com/30136842/NNAtom/12539221> , <http://example.com/30136842/NNAtom/24856323> ;
+ cdk:hasBond <http://example.com/30136842/NNBond/21006994> .
+
+<http://example.com/30136842/NNAtom/12539221>
+ a cdk:Atom ;
+ cdk:hasAtomicNumber "6" ;
+ cdk:hasFormalCharge "0" ;
+ cdk:symbol "C" .
+
+<http://example.com/30136842/NNAtom/24856323>
+ a cdk:Atom ;
+ cdk:hasAtomicNumber "6" ;
+ cdk:hasFormalCharge "0" ;
+ cdk:symbol "C" .
+
+<http://example.com/30136842/NNBond/21006994>
+ a cdk:Bond ;
+ cdk:bindsAtom <http://example.com/30136842/NNAtom/12539221> , <http://example.com/30136842/NNAtom/24856323> ;
+ cdk:hasElectronCount
+ "0" ;
+ cdk:hasOrder cdk:DoubleBond .
@@ -61,6 +61,8 @@
IMolecule mol = (IMolecule)reader.read(new NNMolecule());
Assert.assertNotNull(mol);
+ Assert.assertEquals(2, mol.getAtomCount());
+ Assert.assertEquals(1, mol.getBondCount());
}
}

0 comments on commit b11336a

Please sign in to comment.