javaDungAF.tests
Class TestSetComparison
Object
TestSetComparison
public class TestSetComparison
- extends Object
A class to test SetComparison
's
removeNonMinimalMembersOf(Collection<T extends Collection>)
and
removeNonMaximalMembersOf(Collection<T extends Collection>)
methods.
The methods are tested with the following input -
- a set of two comparable
String
-sets;
- a set of two incomparable
String
-sets;
- the empty set;
- a set containing only one
String
-set;
- a list of three
String
-sets, such that two have the same contents, and are comparable with the third;
- a list of three
String
-sets, such that no two have the same contents, and two are comparable with
one another; and
- a set comprising two comparable sets and one list, the list containing the same as one of the sets.
This class must be run with assertions enabled.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestSetComparison
public TestSetComparison()
main
public static void main(String[] args)