public class QueueTestProgram
extends java.lang.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 | Description |
---|---|---|
static int |
queue_max_size |
Constructor | Description |
---|---|
QueueTestProgram() |
Modifier and Type | Method | Description |
---|---|---|
static <E> java.util.List<E> |
listOfFirst(int n,
java.util.Queue<E> q) |
|
static void |
printFailedTests(int test_count,
java.util.function.IntFunction<java.util.Queue<java.lang.Integer>> referenceSupplier,
java.util.function.IntFunction<IQueue<java.lang.Integer>> testSubjectSupplier) |
|
static java.util.Map<java.lang.String,java.lang.Object> |
runTest(long seed,
java.util.function.IntFunction<java.util.Queue<java.lang.Integer>> referenceSupplier,
java.util.function.IntFunction<IQueue<java.lang.Integer>> testSubjectSupplier) |
|
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
runTests(int test_count,
int returned_failures_count,
java.util.function.IntFunction<java.util.Queue<java.lang.Integer>> referenceSupplier,
java.util.function.IntFunction<IQueue<java.lang.Integer>> testSubjectSupplier) |
public static void printFailedTests(int test_count, java.util.function.IntFunction<java.util.Queue<java.lang.Integer>> referenceSupplier, java.util.function.IntFunction<IQueue<java.lang.Integer>> testSubjectSupplier)
public static java.util.Map<java.lang.String,java.lang.Object> runTest(long seed, java.util.function.IntFunction<java.util.Queue<java.lang.Integer>> referenceSupplier, java.util.function.IntFunction<IQueue<java.lang.Integer>> testSubjectSupplier)
public static <E> java.util.List<E> listOfFirst(int n, java.util.Queue<E> q)
public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> runTests(int test_count, int returned_failures_count, java.util.function.IntFunction<java.util.Queue<java.lang.Integer>> referenceSupplier, java.util.function.IntFunction<IQueue<java.lang.Integer>> testSubjectSupplier)