JML

org.jmlspecs.samples.prelimdesign
Class USMoney_JML_Test.TestMinus

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jmlspecs.samples.prelimdesign.USMoney_JML_TestData
              extended byorg.jmlspecs.samples.prelimdesign.USMoney_JML_Test
                  extended byorg.jmlspecs.samples.prelimdesign.USMoney_JML_Test.OneTest
                      extended byorg.jmlspecs.samples.prelimdesign.USMoney_JML_Test.TestMinus
All Implemented Interfaces:
junit.framework.Test
Enclosing class:
USMoney_JML_Test

protected static class USMoney_JML_Test.TestMinus
extends USMoney_JML_Test.OneTest

Test for the minus method.


Nested Class Summary
 
Nested classes inherited from class org.jmlspecs.samples.prelimdesign.USMoney_JML_Test
USMoney_JML_Test.OneTest, USMoney_JML_Test.TestCents, USMoney_JML_Test.TestClone, USMoney_JML_Test.TestDollars, USMoney_JML_Test.TestEquals, USMoney_JML_Test.TestGreaterThan, USMoney_JML_Test.TestGreaterThanOrEqualTo, USMoney_JML_Test.TestHashCode, USMoney_JML_Test.TestLessThan, USMoney_JML_Test.TestLessThanOrEqualTo, USMoney_JML_Test.TestMinus, USMoney_JML_Test.TestPlus, USMoney_JML_Test.TestScaleBy, USMoney_JML_Test.TestToString, USMoney_JML_Test.TestUSMoney
 
Field Summary
private  Money m2
          Argument m2
 
Fields inherited from class org.jmlspecs.samples.prelimdesign.USMoney_JML_Test.OneTest
result
 
Fields inherited from class org.jmlspecs.samples.prelimdesign.USMoney_JML_TestData
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
USMoney_JML_Test.TestMinus(USMoney receiver$, Money m2)
          Initialize this instance.
 
Method Summary
protected  void doCall()
           
protected  String failMessage(JMLAssertionError e$)
           
 
Methods inherited from class org.jmlspecs.samples.prelimdesign.USMoney_JML_Test.OneTest
run, runTest
 
Methods inherited from class org.jmlspecs.samples.prelimdesign.USMoney_JML_Test
addTestSuiteForEachMethod, charToString, main, suite
 
Methods inherited from class org.jmlspecs.samples.prelimdesign.USMoney_JML_TestData
emptyTestSuiteFor, overallTestSuite, vdoubleIter, vjava_lang_ObjectIter, vlongIter, vorg_jmlspecs_samples_prelimdesign_MoneyIter, vorg_jmlspecs_samples_prelimdesign_USMoneyIter
 
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

m2

private Money m2
Argument m2

Constructor Detail

USMoney_JML_Test.TestMinus

public USMoney_JML_Test.TestMinus(USMoney receiver$,
                                  Money m2)
Initialize this instance.

Method Detail

doCall

protected void doCall()
               throws Throwable
Description copied from class: USMoney_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: USMoney_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.