JML

org.jmlspecs.models
Class JMLListValueNode_JML_Test

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jmlspecs.models.JMLListValueNode_JML_TestData
              extended byorg.jmlspecs.models.JMLListValueNode_JML_Test
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
JMLListValueNode_JML_Test.OneTest

public class JMLListValueNode_JML_Test
extends JMLListValueNode_JML_TestData

Automatically-generated test driver for JML and JUnit based testing of JMLListValueNode. 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

  jmlunit JMLListValueNode.java
 
to regenerate this class whenever JMLListValueNode.java changes.


Nested Class Summary
protected static class JMLListValueNode_JML_Test.OneTest
          A JUnit test object that can run a single test method.
protected static class JMLListValueNode_JML_Test.TestAppend
          Test for the append method.
protected static class JMLListValueNode_JML_Test.TestClone
          Test for the clone method.
protected static class JMLListValueNode_JML_Test.TestConcat
          Test for the concat method.
protected static class JMLListValueNode_JML_Test.TestCons
          Test for the cons method.
protected static class JMLListValueNode_JML_Test.TestEquals
          Test for the equals method.
protected static class JMLListValueNode_JML_Test.TestGetItem
          Test for the getItem method.
protected static class JMLListValueNode_JML_Test.TestHas
          Test for the has method.
protected static class JMLListValueNode_JML_Test.TestHashCode
          Test for the hashCode method.
protected static class JMLListValueNode_JML_Test.TestHead
          Test for the head method.
protected static class JMLListValueNode_JML_Test.TestHeadEquals
          Test for the headEquals method.
protected static class JMLListValueNode_JML_Test.TestIndexOf
          Test for the indexOf method.
protected static class JMLListValueNode_JML_Test.TestInsertBefore
          Test for the insertBefore method.
protected static class JMLListValueNode_JML_Test.TestInt_length
          Test for the int_length method.
protected static class JMLListValueNode_JML_Test.TestInt_size
          Test for the int_size method.
protected static class JMLListValueNode_JML_Test.TestIsPrefixOf
          Test for the isPrefixOf method.
protected static class JMLListValueNode_JML_Test.TestItemAt
          Test for the itemAt method.
protected static class JMLListValueNode_JML_Test.TestJMLListValueNode
          Test for the JMLListValueNode contructor.
protected static class JMLListValueNode_JML_Test.TestLast
          Test for the last method.
protected static class JMLListValueNode_JML_Test.TestPrefix
          Test for the prefix method.
protected static class JMLListValueNode_JML_Test.TestPrepend
          Test for the prepend method.
protected static class JMLListValueNode_JML_Test.TestRemove
          Test for the remove method.
protected static class JMLListValueNode_JML_Test.TestRemoveItemAt
          Test for the removeItemAt method.
protected static class JMLListValueNode_JML_Test.TestRemoveLast
          Test for the removeLast method.
protected static class JMLListValueNode_JML_Test.TestRemovePrefix
          Test for the removePrefix method.
protected static class JMLListValueNode_JML_Test.TestReplaceItemAt
          Test for the replaceItemAt method.
protected static class JMLListValueNode_JML_Test.TestReverse
          Test for the reverse method.
protected static class JMLListValueNode_JML_Test.TestToString
          Test for the toString method.
 
Field Summary
 
Fields inherited from class org.jmlspecs.models.JMLListValueNode_JML_TestData
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
JMLListValueNode_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 JMLListValueNode.
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.JMLListValueNode_JML_TestData
emptyTestSuiteFor, overallTestSuite, vintIter, vjava_lang_ObjectIter, vorg_jmlspecs_models_JMLListValueNodeIter, vorg_jmlspecs_models_JMLTypeIter
 
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

JMLListValueNode_JML_Test

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


addTestSuiteForEachMethod

public void addTestSuiteForEachMethod(junit.framework.TestSuite overallTestSuite$)
Create the tests that are to be run for testing the class JMLListValueNode. The framework will then run them.

Parameters:
overallTestSuite$ - The suite accumulating all of the tests for this driver class.

check_has_data

private void check_has_data(IndefiniteIterator iter,
                            String call)
Check that the iterator is non-null and not empty.


charToString

public static String charToString(char c)
Converts a char to a printable String for display


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.