All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.hellocuriosity.providers.ByteProvider.kt Maven / Gradle / Ivy

Go to download

Model Forge is a library to automate model generation for automated testing.

The newest version!
package io.github.hellocuriosity.providers

/**
 * Auto generates a Byte between two values
 *
 * @param min minimum value
 * @param max maximum value
 * @param provider IntegerProvider
 *
 * @return Byte instance
 */
class ByteProvider(
    private val min: Int = Byte.MIN_VALUE.toInt(),
    private val max: Int = Byte.MAX_VALUE.toInt(),
    private val provider: IntegerProvider =
        IntegerProvider(min, max),
) : Provider {
    override fun get(): Byte = provider.get().toByte()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy