The Octet Molecular Representation Framework v0.8.2

net.sf.octet.test
Class CollectionsTest

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

public class CollectionsTest
extends OctetTestCase

Unit tests for the net.sf.octet.collection package.

Author:
Richard Apodaca

Constructor Summary
CollectionsTest()
          Default constructor.
 
Method Summary
 void testAtomCollection()
          Verifies that the BasicAtomCollection constructor throws an IllegalArgumentException on attempting to pass a List containing a non- Atom element.
 void testAtomMap()
          Validates one-to-one hexane-to-hexane Atom mapping.
 void testInvalidAtomMap()
          Verifies that the appropriate exceptions are thrown when attempting to create a BasicAtomMap from an invalid Map.
 
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

CollectionsTest

public CollectionsTest()
Default constructor.

Method Detail

testAtomCollection

public void testAtomCollection()
Verifies that the BasicAtomCollection constructor throws an IllegalArgumentException on attempting to pass a List containing a non- Atom element.


testInvalidAtomMap

public void testInvalidAtomMap()
Verifies that the appropriate exceptions are thrown when attempting to create a BasicAtomMap from an invalid Map.


testAtomMap

public void testAtomMap()
Validates one-to-one hexane-to-hexane Atom mapping.


The Octet Molecular Representation Framework v0.8.2