JML

org.jmlspecs.models
Class JMLFloat_JML_Test.TestApproximatelyEqualTo$5

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jmlspecs.models.JMLFloat_JML_TestData
              extended byorg.jmlspecs.models.JMLFloat_JML_Test
                  extended byorg.jmlspecs.models.JMLFloat_JML_Test.OneTest
                      extended byorg.jmlspecs.models.JMLFloat_JML_Test.TestApproximatelyEqualTo$5
All Implemented Interfaces:
junit.framework.Test
Enclosing class:
JMLFloat_JML_Test

protected static class JMLFloat_JML_Test.TestApproximatelyEqualTo$5
extends JMLFloat_JML_Test.OneTest

Test for the approximatelyEqualTo method.


Nested Class Summary
 
Nested classes inherited from class org.jmlspecs.models.JMLFloat_JML_Test
JMLFloat_JML_Test.OneTest, JMLFloat_JML_Test.TestApproximatelyEqualTo, JMLFloat_JML_Test.TestClone, JMLFloat_JML_Test.TestCompareTo, JMLFloat_JML_Test.TestDividedBy, JMLFloat_JML_Test.TestEquals, JMLFloat_JML_Test.TestFloatValue, JMLFloat_JML_Test.TestGetFloat, JMLFloat_JML_Test.TestGreaterThan, JMLFloat_JML_Test.TestGreaterThanOrEqualTo, JMLFloat_JML_Test.TestHashCode, JMLFloat_JML_Test.TestIsInfinite, JMLFloat_JML_Test.TestIsNaN, JMLFloat_JML_Test.TestIsZero, JMLFloat_JML_Test.TestJMLFloat, JMLFloat_JML_Test.TestLessThan, JMLFloat_JML_Test.TestLessThanOrEqualTo, JMLFloat_JML_Test.TestMinus, JMLFloat_JML_Test.TestNegated, JMLFloat_JML_Test.TestPlus, JMLFloat_JML_Test.TestRemainderBy, JMLFloat_JML_Test.TestTimes, JMLFloat_JML_Test.TestToString, JMLFloat_JML_Test.TestWithinEpsilonOf
 
Field Summary
private  float epsilon
          Argument epsilon
private  JMLFloat f1
          Argument f1
private  Float f2
          Argument f2
 
Fields inherited from class org.jmlspecs.models.JMLFloat_JML_Test.OneTest
result
 
Fields inherited from class org.jmlspecs.models.JMLFloat_JML_TestData
 
Fields inherited from class junit.framework.TestCase
 
Method Summary
protected  void doCall()
           
protected  String failMessage(JMLAssertionError e$)
           
 
Methods inherited from class org.jmlspecs.models.JMLFloat_JML_Test.OneTest
run, runTest
 
Methods inherited from class org.jmlspecs.models.JMLFloat_JML_Test
addTestSuiteForEachMethod, charToString, main, suite
 
Methods inherited from class org.jmlspecs.models.JMLFloat_JML_TestData
emptyTestSuiteFor, overallTestSuite, vfloatIter, vintIter, vjava_lang_FloatIter, vjava_lang_ObjectIter, vjava_lang_StringIter, vorg_jmlspecs_models_JMLFloatIter
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runBare, 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
 

Field Detail

f1

private JMLFloat f1
Argument f1


f2

private Float f2
Argument f2


epsilon

private float epsilon
Argument epsilon

Method Detail

doCall

protected void doCall()
               throws Throwable
Description copied from class: JMLFloat_JML_Test.OneTest
Call the method to be tested with the appropriate arguments.

Throws:
Throwable

failMessage

protected String failMessage(JMLAssertionError e$)
Description copied from class: JMLFloat_JML_Test.OneTest
Format the error message for a test failure, based on the method's arguments.


JML

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.