public class QueueTestProgram extends Object
PriorityQueue as a reference implementation.
This program is an example of generative testing: it generates test scenarios ad infinitum.
created by cspfrederick Fall17
| Modifier and Type | Field and Description |
|---|---|
static int |
queue_max_size |
| Constructor and Description |
|---|
QueueTestProgram() |
| Modifier and Type | Method and Description |
|---|---|
static <E> List<E> |
listOfFirst(int n,
Queue<E> q) |
static void |
printFailedTests(int test_count,
IntFunction<Queue<Integer>> referenceSupplier,
IntFunction<IQueue<Integer>> testSubjectSupplier) |
static Map<String,Object> |
runTest(long seed,
IntFunction<Queue<Integer>> referenceSupplier,
IntFunction<IQueue<Integer>> testSubjectSupplier) |
static List<Map<String,Object>> |
runTests(int test_count,
int returned_failures_count,
IntFunction<Queue<Integer>> referenceSupplier,
IntFunction<IQueue<Integer>> testSubjectSupplier) |
public static void printFailedTests(int test_count,
IntFunction<Queue<Integer>> referenceSupplier,
IntFunction<IQueue<Integer>> testSubjectSupplier)
public static Map<String,Object> runTest(long seed, IntFunction<Queue<Integer>> referenceSupplier, IntFunction<IQueue<Integer>> testSubjectSupplier)
public static List<Map<String,Object>> runTests(int test_count, int returned_failures_count, IntFunction<Queue<Integer>> referenceSupplier, IntFunction<IQueue<Integer>> testSubjectSupplier)