| csdl.jblanket.methodset.TestMethodSet
TestMethodSet | public class TestMethodSet extends TestCase (Code) | | Tests operation of the MethodSet ADT.
If using Ant to execute this test class a 'jblanket.testdir' system property needs to be set
in the build.xml file. If running test class from command line, must provide -D argument with
'jblanket.testdir' to set the system property. This value is used in the testFileOperations
method.
author: Joy M. Agustin version: $Id: TestMethodSet.java,v 1.1 2004/11/07 00:32:40 timshadel Exp $ |
Method Summary | |
public static void | main(String[] args) Provide stand-alone execution of this test case during initial development. | public void | setUp() Sets up variables for testing. | public void | testBasicFunctions() Tests the basic functions add, remove, size, and equals methods from the MethodSet class. | public void | testDifference() Tests the difference method from the MethodSet class. | public void | testFileOperations() Tests store and load methods from the MethodSet class. | public void | testIntersection() Tests the intersection method from the MethodSet class. | public void | testUnion() Tests the union method from the MethodSet class. |
TestMethodSet | public TestMethodSet(String name)(Code) | | Required for JUnit.
Parameters: name - Test case name. |
main | public static void main(String[] args)(Code) | | Provide stand-alone execution of this test case during initial development.
Parameters: args - The command line arguments |
setUp | public void setUp()(Code) | | Sets up variables for testing.
|
testBasicFunctions | public void testBasicFunctions() throws Exception(Code) | | Tests the basic functions add, remove, size, and equals methods from the MethodSet class.
throws: Exception - If problems occur. |
testDifference | public void testDifference() throws Exception(Code) | | Tests the difference method from the MethodSet class.
throws: Exception - If problems occur. |
testFileOperations | public void testFileOperations() throws Exception(Code) | | Tests store and load methods from the MethodSet class.
throws: Exception - If problems occur. |
testIntersection | public void testIntersection() throws Exception(Code) | | Tests the intersection method from the MethodSet class.
throws: Exception - If problems occur. |
testUnion | public void testUnion() throws Exception(Code) | | Tests the union method from the MethodSet class.
throws: Exception - If problems occur. |
|
|