Class JMLValueToValueMap_JML_Test

  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jmlspecs.models.JMLValueToValueMap_JML_TestData
              extended byorg.jmlspecs.models.JMLValueToValueMap_JML_Test
All Implemented Interfaces:
Direct Known Subclasses:

public class JMLValueToValueMap_JML_Test
extends JMLValueToValueMap_JML_TestData

Automatically-generated test driver for JML and JUnit based testing of JMLValueToValueMap. The superclass of this class should be edited to supply test data. However it's best not to edit this class directly; instead use the command

to regenerate this class whenever changes.

Nested Class Summary
protected static class JMLValueToValueMap_JML_Test.OneTest
          A JUnit test object that can run a single test method.
protected static class JMLValueToValueMap_JML_Test.TestAdd
          Test for the add method.
protected static class JMLValueToValueMap_JML_Test.TestApply
          Test for the apply method.
protected static class JMLValueToValueMap_JML_Test.TestAssociations
          Test for the associations method.
protected static class JMLValueToValueMap_JML_Test.TestClashReplaceUnion
          Test for the clashReplaceUnion method.
protected static class JMLValueToValueMap_JML_Test.TestClone
          Test for the clone method.
protected static class JMLValueToValueMap_JML_Test.TestCompose
          Test for the compose method.
protected static class JMLValueToValueMap_JML_Test.TestDifference
          Test for the difference method.
protected static class JMLValueToValueMap_JML_Test.TestDisjointUnion
          Test for the disjointUnion method.
protected static class JMLValueToValueMap_JML_Test.TestDomain
          Test for the domain method.
protected static class JMLValueToValueMap_JML_Test.TestDomainElements
          Test for the domainElements method.
protected static class JMLValueToValueMap_JML_Test.TestElementImage
          Test for the elementImage method.
protected static class JMLValueToValueMap_JML_Test.TestElements
          Test for the elements method.
protected static class JMLValueToValueMap_JML_Test.TestEquals
          Test for the equals method.
protected static class JMLValueToValueMap_JML_Test.TestExtend
          Test for the extend method.
protected static class JMLValueToValueMap_JML_Test.TestExtendUnion
          Test for the extendUnion method.
protected static class JMLValueToValueMap_JML_Test.TestHas
          Test for the has method.
protected static class JMLValueToValueMap_JML_Test.TestHashCode
          Test for the hashCode method.
protected static class JMLValueToValueMap_JML_Test.TestImage
          Test for the image method.
protected static class JMLValueToValueMap_JML_Test.TestImagePairs
          Test for the imagePairs method.
protected static class JMLValueToValueMap_JML_Test.TestImagePairSet
          Test for the imagePairSet method.
protected static class JMLValueToValueMap_JML_Test.TestInsert
          Test for the insert method.
protected static class JMLValueToValueMap_JML_Test.TestInt_size
          Test for the int_size method.
protected static class JMLValueToValueMap_JML_Test.TestIntersection
          Test for the intersection method.
protected static class JMLValueToValueMap_JML_Test.TestInverse
          Test for the inverse method.
protected static class JMLValueToValueMap_JML_Test.TestInverseElementImage
          Test for the inverseElementImage method.
protected static class JMLValueToValueMap_JML_Test.TestInverseImage
          Test for the inverseImage method.
protected static class JMLValueToValueMap_JML_Test.TestIsaFunction
          Test for the isaFunction method.
protected static class JMLValueToValueMap_JML_Test.TestIsDefinedAt
          Test for the isDefinedAt method.
protected static class JMLValueToValueMap_JML_Test.TestIsEmpty
          Test for the isEmpty method.
protected static class JMLValueToValueMap_JML_Test.TestIterator
          Test for the iterator method.
protected static class JMLValueToValueMap_JML_Test.TestJMLValueToValueMap
          Test for the JMLValueToValueMap contructor.
protected static class JMLValueToValueMap_JML_Test.TestRange
          Test for the range method.
protected static class JMLValueToValueMap_JML_Test.TestRangeElements
          Test for the rangeElements method.
protected static class JMLValueToValueMap_JML_Test.TestRangeRestrictedTo
          Test for the rangeRestrictedTo method.
protected static class JMLValueToValueMap_JML_Test.TestRemove
          Test for the remove method.
protected static class JMLValueToValueMap_JML_Test.TestRemoveDomainElement
          Test for the removeDomainElement method.
protected static class JMLValueToValueMap_JML_Test.TestRemoveFromDomain
          Test for the removeFromDomain method.
protected static class JMLValueToValueMap_JML_Test.TestRestrictDomainTo
          Test for the restrictDomainTo method.
protected static class JMLValueToValueMap_JML_Test.TestRestrictedTo
          Test for the restrictedTo method.
protected static class JMLValueToValueMap_JML_Test.TestRestrictRangeTo
          Test for the restrictRangeTo method.
protected static class JMLValueToValueMap_JML_Test.TestSingletonMap
          Test for the singletonMap method.
protected static class JMLValueToValueMap_JML_Test.TestToBag
          Test for the toBag method.
protected static class JMLValueToValueMap_JML_Test.TestToFunction
          Test for the toFunction method.
protected static class JMLValueToValueMap_JML_Test.TestToSequence
          Test for the toSequence method.
protected static class JMLValueToValueMap_JML_Test.TestToSet
          Test for the toSet method.
protected static class JMLValueToValueMap_JML_Test.TestToString
          Test for the toString method.
protected static class JMLValueToValueMap_JML_Test.TestUnion
          Test for the union method.
Field Summary
Fields inherited from class org.jmlspecs.models.JMLValueToValueMap_JML_TestData
Fields inherited from class junit.framework.TestCase
Constructor Summary
JMLValueToValueMap_JML_Test(String name)
          Initialize this class.
Method Summary
 void addTestSuiteForEachMethod(junit.framework.TestSuite overallTestSuite$)
          Create the tests that are to be run for testing the class JMLValueToValueMap.
static String charToString(char c)
          Converts a char to a printable String for display
private  void check_has_data(IndefiniteIterator iter, String call)
          Check that the iterator is non-null and not empty.
static void main(String[] args)
          Run the tests.
static junit.framework.Test suite()
          Return the test suite for this test class.
Methods inherited from class org.jmlspecs.models.JMLValueToValueMap_JML_TestData
emptyTestSuiteFor, overallTestSuite, vjava_lang_ObjectIter, vorg_jmlspecs_models_JMLObjectToValueMapIter, vorg_jmlspecs_models_JMLObjectToValueRelationIter, vorg_jmlspecs_models_JMLTypeIter, vorg_jmlspecs_models_JMLValueSetIter, vorg_jmlspecs_models_JMLValueToValueMapIter, vorg_jmlspecs_models_JMLValueToValueRelationIter, vorg_jmlspecs_models_JMLValueValuePairIter
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


public JMLValueToValueMap_JML_Test(String name)
Initialize this class.

Method Detail


public static void main(String[] args)
Run the tests.


public static junit.framework.Test suite()
Return the test suite for this test class. This will have added to it at least test$IsRACCompiled(), and any test methods written explicitly by the user in the superclass. It will also have added test suites for each testing each method and constructor.


public void addTestSuiteForEachMethod(junit.framework.TestSuite overallTestSuite$)
Create the tests that are to be run for testing the class JMLValueToValueMap. The framework will then run them.

overallTestSuite$ - The suite accumulating all of the tests for this driver class.


private void check_has_data(IndefiniteIterator iter,
                            String call)
Check that the iterator is non-null and not empty.


public static String charToString(char c)
Converts a char to a printable String for display


JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.