JML

org.jmlspecs.jmlunit.strategies
Class FloatStrategyTypeTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jmlspecs.jmlunit.strategies.FloatStrategyTypeTest
All Implemented Interfaces:
junit.framework.Test

public class FloatStrategyTypeTest
extends junit.framework.TestCase

Hand-coded JUnit test for subtypes of FloatStrategyType.

Author:
Gary T. Leavens

Class Specifications

Specifications inherited from class Object
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT;
public represents _getClass <- \typeof(this);

Model Field Summary
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
FloatStrategyTypeTest(String name)
          Initialize this class.
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
Method Summary
static void main(String[] args)
          Run the tests.
static junit.framework.Test suite()
          Return the test suite for this test class.
 void testEmptyComposite()
          Test the empty CompositeStrategy's iterator
 void testFloatBigStrategyContents()
          Test contents of FloatBigStrategy.
 void testFloatBigStrategySize()
          Test FloatBigStrategy's size
 void testFloatStrategyContents()
          Test contents of FloatStrategy.
 void testFloatStrategyFreshness()
          Test freshness of these strategies.
 void testFloatStrategySize()
          Test FloatStrategy's size
 void testLargerComposite()
          Test a larger CompositeStrategy's iterator
 void testNonNegativeStrategyDecorator()
          Test FloatNonNegativeStrategyDecorator
 void testPairComposite()
          Test a pair CompositeStrategy's iterator
 void testSingletonComposite()
          Test a singleton CompositeStrategy's iterator
 
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

FloatStrategyTypeTest

public FloatStrategyTypeTest(String name)
Initialize this class.

Method Detail

main

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


suite

public static junit.framework.Test suite()
Return the test suite for this test class.

Specifications:
ensures \result != null;

testFloatStrategySize

public void testFloatStrategySize()
Test FloatStrategy's size


testFloatBigStrategySize

public void testFloatBigStrategySize()
Test FloatBigStrategy's size


testFloatStrategyContents

public void testFloatStrategyContents()
Test contents of FloatStrategy.


testFloatBigStrategyContents

public void testFloatBigStrategyContents()
Test contents of FloatBigStrategy.


testFloatStrategyFreshness

public void testFloatStrategyFreshness()
Test freshness of these strategies.


testEmptyComposite

public void testEmptyComposite()
Test the empty CompositeStrategy's iterator


testSingletonComposite

public void testSingletonComposite()
Test a singleton CompositeStrategy's iterator


testPairComposite

public void testPairComposite()
Test a pair CompositeStrategy's iterator


testLargerComposite

public void testLargerComposite()
Test a larger CompositeStrategy's iterator


testNonNegativeStrategyDecorator

public void testNonNegativeStrategyDecorator()
Test FloatNonNegativeStrategyDecorator


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.