@@ -0,0 +1,1785 @@
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.%0Apackage com.tvl.util;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.CoreMatchers.instanceOf;%0A%0Apublic class RequiresTests extends ImmutablesTestBase %7B%0A    @Test%0A    public void argument() %7B%0A        Requires.argument(true);%0A        Requires.argument(true, %22parameterName%22, %22message%22);%0A%0A        try %7B%0A            Requires.argument(false);%0A            Assert.fail();%0A        %7D catch (IllegalArgumentException ignored) %7B%0A        %7D%0A%0A        try %7B%0A            Requires.argument(false, %22parameterName%22, %22message%22);%0A            Assert.fail();%0A        %7D catch (IllegalArgumentException ignored) %7B%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void failRange() %7B%0A        //Assert.Throws%3CArgumentOutOfRangeException%3E(() =%3E Requires.FailRange(%22parameterName%22));%0A%0A        try %7B%0A            Requires.failRange(%22parameterName%22, %22message%22);%0A            Assert.fail();%0A        %7D catch (IndexOutOfBoundsException ignored) %7B%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void range() %7B%0A        Requires.range(true, %22parameterName%22);%0A        Requires.range(true, %22parameterName%22, %22message%22);%0A%0A        try %7B%0A            Requires.range(false, %22parameterName%22);%0A            Assert.fail();%0A        %7D catch (IndexOutOfBoundsException ignored) %7B%0A        %7D%0A%0A        try %7B%0A            Requires.range(false, %22parameterName%22, %22message%22);%0A            Assert.fail();%0A        %7D catch (IndexOutOfBoundsException ignored) %7B%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void notNull() %7B%0A        Requires.notNull(new Object(), %22parameterName%22);%0A%0A        thrown.expect(instanceOf(NullPointerException.class));%0A        thrown.expectMessage(%22parameterName%22);%0A        Requires.notNull(null, %22parameterName%22);%0A    %7D%0A%7D%0A

Add RequiresTests