The Octet Molecular Representation Framework v0.8.2

net.sf.octet.test
Class MoleculeBuilderTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bynet.sf.octet.test.OctetTestCase
              extended bynet.sf.octet.test.MoleculeBuilderTest
All Implemented Interfaces:
junit.framework.Test

public class MoleculeBuilderTest
extends OctetTestCase

Tests the functionality of BasicMoleculeBuilder.

Author:
Richard Apodaca

Constructor Summary
MoleculeBuilderTest()
          Default constructor.
 
Method Summary
 void testConnectAtomsTwiceInSameBondingSystem()
          Verifies that an IllegalRepresentationException is thrown in response to connecting two AtomProxies through the same BondingSystemProxy twice.
 void testUseInvalidProxyDuringAddGammaSequence()
          Verifies that BasicMoleculeBuilder throws a NoSuchProxyException during addGammaSequence.
 void testUseInvalidProxyDuringConnect()
          Verifies that BasicMoleculeBuilder throws a NoSuchProxyException when an invalid BondingSystemProxy or GammaSequenceProxy are used.
 void testUseInvalidProxyDuringIonize()
          Verifies that BasicMoleculeBuilder throws a NoSuchProxyException during ionizeAtom or ionizeBondingSystem.
 void testUseInvalidProxyDuringShareElectrons()
          Verifies that BasicMoleculeBuilder throws a NoSuchProxyException during shareElectrons.
 void testUseStringsForAtomLabels()
          Verifies that a pyridine moleucule built by using MoleculeKit convenience methods produces the same molecule as obtained with RepresentationKit.
 
Methods inherited from class net.sf.octet.test.OctetTestCase
getMoleculeBuilder
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MoleculeBuilderTest

public MoleculeBuilderTest()
Default constructor.

Method Detail

testUseInvalidProxyDuringConnect

public void testUseInvalidProxyDuringConnect()
Verifies that BasicMoleculeBuilder throws a NoSuchProxyException when an invalid BondingSystemProxy or GammaSequenceProxy are used.


testUseInvalidProxyDuringIonize

public void testUseInvalidProxyDuringIonize()
Verifies that BasicMoleculeBuilder throws a NoSuchProxyException during ionizeAtom or ionizeBondingSystem.


testUseInvalidProxyDuringShareElectrons

public void testUseInvalidProxyDuringShareElectrons()
Verifies that BasicMoleculeBuilder throws a NoSuchProxyException during shareElectrons.


testUseInvalidProxyDuringAddGammaSequence

public void testUseInvalidProxyDuringAddGammaSequence()
Verifies that BasicMoleculeBuilder throws a NoSuchProxyException during addGammaSequence.


testConnectAtomsTwiceInSameBondingSystem

public void testConnectAtomsTwiceInSameBondingSystem()
Verifies that an IllegalRepresentationException is thrown in response to connecting two AtomProxies through the same BondingSystemProxy twice.


testUseStringsForAtomLabels

public void testUseStringsForAtomLabels()
Verifies that a pyridine moleucule built by using MoleculeKit convenience methods produces the same molecule as obtained with RepresentationKit.


The Octet Molecular Representation Framework v0.8.2