summaryrefslogtreecommitdiff
path: root/src/test/java/com/seaofnodes/simple/FuzzerWrap.java
blob: 82a6a4723d95835cba8150488e39db434da4b410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.seaofnodes.simple;

import com.seaofnodes.simple.fuzzer.Fuzzer;
import org.junit.Ignore;
import org.junit.Test;


import static org.junit.Assert.assertTrue;

/**
 * To use the fuzzer run the <code>fuzzPeeps</code> methods.
 * This can be done from IntelliJ Gui or remove the `@Ignore` annotation and start the test case from the command line
 * via <code>mvn clean test -Dtest=com.seaofnodes.simple.FuzzerWrap#fuzzPeeps</code>
 */
public class FuzzerWrap {

    @Test
    @Ignore
    public void fuzzPeeps() {
        var fuzzer = new Fuzzer();
        for (int i=0; i<100000; i++)
            fuzzer.fuzzPeeps(i);
        assertTrue(fuzzer.noExceptions());
    }

}