Examples of FooGenerator


Examples of com.pholser.junit.quickcheck.test.generator.FooGenerator

        @Theory public void shouldHold(@ForAll FooUnboxer b) {
            ++iterations;

            @SuppressWarnings("unchecked")
            Foo value = functionValue(new FooGenerator(), new Object[] { new Box<>(new Foo(2)) });
            for (int i = 0; i < 10000; ++i)
                assertEquals(value, b.unbox(new Box<>(new Foo(2))));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.