Class JMLInfiniteInteger_JML_Test

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

public class JMLInfiniteInteger_JML_Test
extends JMLInfiniteInteger_JML_TestData

Automatically-generated test driver for JML and JUnit based testing of JMLInfiniteInteger. 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 JMLInfiniteInteger_JML_Test.OneTest
          A JUnit test object that can run a single test method.
protected static class JMLInfiniteInteger_JML_Test.TestAbs
          Test for the abs method.
protected static class JMLInfiniteInteger_JML_Test.TestAdd
          Test for the add method.
protected static class JMLInfiniteInteger_JML_Test.TestClone
          Test for the clone method.
protected static class JMLInfiniteInteger_JML_Test.TestCompareTo
          Test for the compareTo method.
protected static class JMLInfiniteInteger_JML_Test.TestDivide
          Test for the divide method.
protected static class JMLInfiniteInteger_JML_Test.TestDoubleValue
          Test for the doubleValue method.
protected static class JMLInfiniteInteger_JML_Test.TestEquals
          Test for the equals method.
protected static class JMLInfiniteInteger_JML_Test.TestFiniteValue
          Test for the finiteValue method.
protected static class JMLInfiniteInteger_JML_Test.TestFloatValue
          Test for the floatValue method.
protected static class JMLInfiniteInteger_JML_Test.TestGreaterThan
          Test for the greaterThan method.
protected static class JMLInfiniteInteger_JML_Test.TestGreaterThanOrEqualTo
          Test for the greaterThanOrEqualTo method.
protected static class JMLInfiniteInteger_JML_Test.TestHashCode
          Test for the hashCode method.
protected static class JMLInfiniteInteger_JML_Test.TestIsFinite
          Test for the isFinite method.
protected static class JMLInfiniteInteger_JML_Test.TestLessThan
          Test for the lessThan method.
protected static class JMLInfiniteInteger_JML_Test.TestLessThanOrEqualTo
          Test for the lessThanOrEqualTo method.
protected static class JMLInfiniteInteger_JML_Test.TestMax
          Test for the max method.
protected static class JMLInfiniteInteger_JML_Test.TestMin
          Test for the min method.
protected static class JMLInfiniteInteger_JML_Test.TestMod
          Test for the mod method.
protected static class JMLInfiniteInteger_JML_Test.TestMultiply
          Test for the multiply method.
protected static class JMLInfiniteInteger_JML_Test.TestNegate
          Test for the negate method.
protected static class JMLInfiniteInteger_JML_Test.TestPow
          Test for the pow method.
protected static class JMLInfiniteInteger_JML_Test.TestRemainder
          Test for the remainder method.
protected static class JMLInfiniteInteger_JML_Test.TestSignum
          Test for the signum method.
protected static class JMLInfiniteInteger_JML_Test.TestSubtract
          Test for the subtract method.
protected static class JMLInfiniteInteger_JML_Test.TestToString
          Test for the toString method.
Field Summary
Fields inherited from class org.jmlspecs.models.JMLInfiniteInteger_JML_TestData
Fields inherited from class junit.framework.TestCase
Constructor Summary
JMLInfiniteInteger_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 JMLInfiniteInteger.
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.JMLInfiniteInteger_JML_TestData
emptyTestSuiteFor, overallTestSuite, vintIter, vjava_lang_ObjectIter, vorg_jmlspecs_models_JMLInfiniteIntegerIter
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 JMLInfiniteInteger_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 JMLInfiniteInteger. 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.