Class ByteArrayGenerator

java.lang.Object
mocka.generator.AbstractGenerator<byte[]>
mocka.generator.array.ByteArrayGenerator
All Implemented Interfaces:
Generator<byte[]>

public class ByteArrayGenerator extends AbstractGenerator<byte[]>
  • Method Details

    • getInstance

      public static ByteArrayGenerator getInstance()
    • get

      public byte[] get()
      Returns a random byte array with a default length of 10
    • get

      public byte[] get(int length)
      Returns a random byte array with the specified length
    • getByte

      public Byte[] getByte()
      Returns a random Byte array with a default length of 10
    • getByte

      public Byte[] getByte(int length)
      Returns a random Byte array with the specified length