summaryrefslogtreecommitdiff
path: root/src/test/java/com/seaofnodes/simple/FuzzerWrap.java
blob: bb3bec1cc2c73b52abfba8f62b75b8a31fc64ded (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
27
28
29
30
31
32
33
34
35
package com.seaofnodes.simple;

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


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<1000000; i++)
            fuzzer.fuzzPeeps(i);
        assertTrue(fuzzer.noExceptions());
    }


    @Test
    @Ignore
    public void fuzzPeepTiming() {
        var fuzzer = new Fuzzer();
        int max_nid=0;
        for (int i=0; i<1000000; i++)
            max_nid = fuzzer.fuzzPeepTiming(i, max_nid);
    }
}