test-helper

Java Test Helpers (currently random generators)

View on GitHub

test-helper

I like using random values for tests. So I wrote the methods for random values quite often. Now i started this library to not write it again and again.

example

@Test
public void testSomethingWithARandomValue() {
    int randomIntFullIntegerRange = RandomValues.randomInt();
    int randomPositiveIntWithMax = RandomValues.randomInt(15);
    ExampleEnum randomEnumValue = RandomValues.randomEnum(ExampleEnum.class);
    // ...
}