JML

org.jmlspecs.jmlunit.strategies
Class NewObjectAbstractStrategyTest

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

public class NewObjectAbstractStrategyTest
extends junit.framework.TestCase

Hand-coded JUnit test for testing NewObjectAbstractStrategy.

Author:
Gary T. Leavens

Nested Class Summary
protected  class NewObjectAbstractStrategyTest.SingletonNOAS
          A class that just provides null and one more object
protected  class NewObjectAbstractStrategyTest.SmallestNOAS
          A class that just provides null
 
Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
NewObjectAbstractStrategyTest(String name)
          Initialize this class.
 
Method Summary
static void main(String[] args)
          Run the tests.
static junit.framework.Test suite()
          Return the test suite for this test class.
 void testNewObjectAbstractStrategyExtension()
          Test extension of this strategy.
 void testNewObjectAbstractStrategyFreshness()
          Test freshness of this strategy.
 void testSingletonNOAS()
          Test SingletonNOAS's iterator
 void testSmallestNOAS()
          Test SmallestNOAS'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

NewObjectAbstractStrategyTest

public NewObjectAbstractStrategyTest(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.


testSmallestNOAS

public void testSmallestNOAS()
Test SmallestNOAS's iterator


testSingletonNOAS

public void testSingletonNOAS()
Test SingletonNOAS's iterator


testNewObjectAbstractStrategyFreshness

public void testNewObjectAbstractStrategyFreshness()
Test freshness of this strategy.


testNewObjectAbstractStrategyExtension

public void testNewObjectAbstractStrategyExtension()
Test extension of this strategy.


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.