code-intelligence.com/cifuzz@v0.40.0/internal/bundler/testdata/jazzer/gradle/multi-custom/testsuite/junit-src/com/example/TestCases.java (about)

     1  package com.example;
     2  
     3  import com.code_intelligence.jazzer.api.FuzzedDataProvider;
     4  import com.code_intelligence.jazzer.junit.FuzzTest;
     5  import org.junit.jupiter.api.Test;
     6  
     7  import static org.junit.jupiter.api.Assertions.assertTrue;
     8  
     9  public class TestCases{
    10  		@FuzzTest
    11  		void myFuzzTest1(FuzzedDataProvider data) {
    12  				int a = data.consumeInt();
    13  				int b = data.consumeInt();
    14  				String c = data.consumeRemainingAsString();
    15  				throw new NullPointerException();
    16  
    17  		}
    18  
    19      @FuzzTest
    20      void myFuzzTest2(FuzzedDataProvider data) {
    21          int a = data.consumeInt();
    22          int b = data.consumeInt();
    23          String c = data.consumeRemainingAsString();
    24  				throw new RuntimeException();
    25      }
    26  
    27      @Test
    28      public void unitTest() {
    29          ExploreMe ex = new ExploreMe(100);
    30          ex.exploreMe(100, "Test");
    31      }
    32  }