diff --git a/src/test/java/org/apache/commons/lang3/function/FailableDoubleFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableDoubleFunctionTest.java deleted file mode 100644 index fad989935..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableDoubleFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertNull; - -/** - * Tests {@link FailableDoubleFunction}. - */ -public class FailableDoubleFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableDoubleFunction func = FailableDoubleFunction.nop(); - assertNull(func.apply(Double.MAX_VALUE), "Expect NOP to return null"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableDoubleToIntFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableDoubleToIntFunctionTest.java deleted file mode 100644 index 456f12528..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableDoubleToIntFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableDoubleToIntFunction}. - */ -public class FailableDoubleToIntFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableDoubleToIntFunction func = FailableDoubleToIntFunction.nop(); - assertEquals(0, func.applyAsInt(Double.MAX_VALUE), "Expect NOP to return default value of 0"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableDoubleToLongFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableDoubleToLongFunctionTest.java deleted file mode 100644 index 8df2d2f0e..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableDoubleToLongFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableDoubleToLongFunction}. - */ -public class FailableDoubleToLongFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableDoubleToLongFunction func = FailableDoubleToLongFunction.nop(); - assertEquals(0, func.applyAsLong(Double.MAX_VALUE), "Expect NOP to return default value of 0"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableFunctionsTest.java b/src/test/java/org/apache/commons/lang3/function/FailableFunctionsTest.java index 7eb138fa7..9ca3ad0a8 100644 --- a/src/test/java/org/apache/commons/lang3/function/FailableFunctionsTest.java +++ b/src/test/java/org/apache/commons/lang3/function/FailableFunctionsTest.java @@ -2563,4 +2563,108 @@ public class FailableFunctionsTest { assertTrue(closeable.isClosed()); } + @Test + public void testFailableDoubleToIntFunctionNop() throws Throwable { + assertEquals(0, FailableDoubleToIntFunction.nop().applyAsInt(Double.MAX_VALUE), "Expect NOP to return 0"); + } + + @Test + public void testFailableDoubleToLongFunctionNop() throws Throwable { + assertEquals(0, FailableDoubleToLongFunction.nop().applyAsLong(Double.MAX_VALUE), "Expect NOP to return 0"); + } + + @Test + public void testFailableIntToDoubleFunctionNop() throws Throwable { + assertEquals(0, FailableIntToDoubleFunction.nop().applyAsDouble(Integer.MAX_VALUE), "Expect NOP to return 0"); + } + + @Test + public void testFailableIntToLongFunctionNop() throws Throwable { + assertEquals(0, FailableIntToLongFunction.nop().applyAsLong(Integer.MAX_VALUE), "Expect NOP to return 0"); + } + + @Test + public void testFailableLongToDoubleFunctionNop() throws Throwable { + assertEquals(0, FailableLongToDoubleFunction.nop().applyAsDouble(Long.MAX_VALUE), "Expect NOP to return 0"); + } + + @Test + public void testFailableLongToIntFunctionNop() throws Throwable { + assertEquals(0, FailableLongToIntFunction.nop().applyAsInt(Long.MAX_VALUE), "Expect NOP to return 0"); + } + + @Test + public void testFailableToIntFunctionNop() throws Throwable { + assertEquals(0, FailableToIntFunction.nop().applyAsInt("Foo"), "Expect NOP to return 0"); + } + + @Test + public void testFailableToIntBiFunctionNop() throws Throwable { + assertEquals(0, FailableToIntBiFunction.nop().applyAsInt("Foo", "Bar"), "Expect NOP to return 0"); + } + + @Test + public void testFailableToLongFunctionNop() throws Throwable { + assertEquals(0, FailableToLongFunction.nop().applyAsLong("Foo"), "Expect NOP to return 0"); + } + + @Test + public void testFailableToLongBiFunctionNop() throws Throwable { + assertEquals(0, FailableToLongBiFunction.nop().applyAsLong("Foo", "Bar"), "Expect NOP to return 0"); + } + + @Test + public void testFailableToDoubleFunctionNop() throws Throwable { + assertEquals(0, FailableToDoubleFunction.nop().applyAsDouble("Foo"), "Expect NOP to return 0"); + } + + @Test + public void testFailableToDoubleBiFunctionNop() throws Throwable { + assertEquals(0, FailableToDoubleBiFunction.nop().applyAsDouble("Foo", "Bar"), "Expect NOP to return 0"); + } + + @Test + public void testFailableBiFunctionNop() throws Throwable { + assertNull(FailableBiFunction.nop().apply("Foo", "Bar"), "Expect NOP to return null"); + } + + @Test + public void testFailableDoubleFunctionNop() throws Throwable { + assertNull(FailableDoubleFunction.nop().apply(Double.MAX_VALUE), "Expect NOP to return null"); + } + + @Test + public void testFailableIntFunctionNop() throws Throwable { + assertNull(FailableIntFunction.nop().apply(Integer.MAX_VALUE), "Expect NOP to return null"); + } + + @Test + public void testFailableLongFunctionNop() throws Throwable { + assertNull(FailableLongFunction.nop().apply(Long.MAX_VALUE), "Expect NOP to return null"); + } + + @Test + public void testFailableConsumerNop() throws Throwable { + // Expect nothing thrown + FailableConsumer.nop().accept("Foo"); + } + + @Test + public void testFailableObjDoubleConsumerNop() throws Throwable { + // Expect nothing thrown + FailableObjDoubleConsumer.nop().accept("Foo", Double.MAX_VALUE); + } + + @Test + public void testFailableObjIntConsumerNop() throws Throwable { + // Expect nothing thrown + FailableObjIntConsumer.nop().accept("Foo", Integer.MAX_VALUE); + } + + @Test + public void testFailableObjLongConsumerNop() throws Throwable { + // Expect nothing thrown + FailableObjLongConsumer.nop().accept("Foo", Long.MAX_VALUE); + } + } diff --git a/src/test/java/org/apache/commons/lang3/function/FailableIntFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableIntFunctionTest.java deleted file mode 100644 index 8c5d331a6..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableIntFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertNull; - -/** - * Tests {@link FailableIntFunction}. - */ -public class FailableIntFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableIntFunction func = FailableIntFunction.nop(); - assertNull(func.apply(Integer.MAX_VALUE), "Expect NOP to return null"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableIntToDoubleFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableIntToDoubleFunctionTest.java deleted file mode 100644 index 656059443..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableIntToDoubleFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableIntToDoubleFunction}. - */ -public class FailableIntToDoubleFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableIntToDoubleFunction func = FailableIntToDoubleFunction.nop(); - assertEquals(0, func.applyAsDouble(Integer.MAX_VALUE), "Expect NOP to return 0"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableIntToLongFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableIntToLongFunctionTest.java deleted file mode 100644 index f394c6949..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableIntToLongFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableIntToLongFunction}. - */ -public class FailableIntToLongFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableIntToLongFunction func = FailableIntToLongFunction.nop(); - assertEquals(0, func.applyAsLong(Integer.MAX_VALUE), "Expect NOP to return 0"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableLongFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableLongFunctionTest.java deleted file mode 100644 index a384d338b..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableLongFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertNull; - -/** - * Tests {@link FailableLongFunction}. - */ -public class FailableLongFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableLongFunction func = FailableLongFunction.nop(); - assertNull(func.apply(Long.MAX_VALUE), "Expect NOP to return null"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableLongToDoubleFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableLongToDoubleFunctionTest.java deleted file mode 100644 index ca9ff5e65..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableLongToDoubleFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableLongToDoubleFunction}. - */ -public class FailableLongToDoubleFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableLongToDoubleFunction func = FailableLongToDoubleFunction.nop(); - assertEquals(0, func.applyAsDouble(Long.MAX_VALUE), "Expect NOP to return 0"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableLongToIntFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableLongToIntFunctionTest.java deleted file mode 100644 index 6fac99f8e..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableLongToIntFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableLongToIntFunction}. - */ -public class FailableLongToIntFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableLongToIntFunction func = FailableLongToIntFunction.nop(); - assertEquals(0, func.applyAsInt(Long.MAX_VALUE), "Expect NOP to return 0"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableObjDoubleConsumerTest.java b/src/test/java/org/apache/commons/lang3/function/FailableObjDoubleConsumerTest.java deleted file mode 100644 index 6eba936a7..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableObjDoubleConsumerTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.fail; - -/** - * Tests {@link FailableObjDoubleConsumer}. - */ -public class FailableObjDoubleConsumerTest { - @Test - public void testNop() { - final FailableObjDoubleConsumer func = FailableObjDoubleConsumer.nop(); - try { - func.accept("FOO", Double.MAX_VALUE); - } catch (final Throwable e) { - fail("Accepting NOP must not throw an exception"); - } - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableObjIntConsumerTest.java b/src/test/java/org/apache/commons/lang3/function/FailableObjIntConsumerTest.java deleted file mode 100644 index 69e8e9cb3..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableObjIntConsumerTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.fail; - -/** - * Tests {@link FailableObjIntConsumer}. - */ -public class FailableObjIntConsumerTest { - @Test - public void testNop() { - final FailableObjIntConsumer func = FailableObjIntConsumer.nop(); - try { - func.accept("FOO", Integer.MAX_VALUE); - } catch (final Throwable e) { - fail("Accepting NOP must not throw an exception"); - } - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableObjLongConsumerTest.java b/src/test/java/org/apache/commons/lang3/function/FailableObjLongConsumerTest.java deleted file mode 100644 index b41a8c429..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableObjLongConsumerTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.fail; - -/** - * Tests {@link FailableObjLongConsumer}. - */ -public class FailableObjLongConsumerTest { - @Test - public void testNop() { - final FailableObjLongConsumer func = FailableObjLongConsumer.nop(); - try { - func.accept("FOO", Long.MAX_VALUE); - } catch (final Throwable e) { - fail("Accepting NOP must not throw an exception"); - } - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableToDoubleBiFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableToDoubleBiFunctionTest.java deleted file mode 100644 index 1b294750e..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableToDoubleBiFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableToDoubleBiFunction}. - */ -public class FailableToDoubleBiFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableToDoubleBiFunction func = FailableToDoubleBiFunction.nop(); - assertEquals(0, func.applyAsDouble("FOO", "BAR"), "Expect NOP to return 0"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableToDoubleFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableToDoubleFunctionTest.java deleted file mode 100644 index 2c21f9a2b..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableToDoubleFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableToDoubleFunction}. - */ -public class FailableToDoubleFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableToDoubleFunction func = FailableToDoubleFunction.nop(); - assertEquals(0, func.applyAsDouble("FOO"), "Expect NOP to return 0"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableToIntBiFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableToIntBiFunctionTest.java deleted file mode 100644 index dad00f73f..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableToIntBiFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableToIntBiFunction}. - */ -public class FailableToIntBiFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableToIntBiFunction func = FailableToIntBiFunction.nop(); - assertEquals(0, func.applyAsInt("FOO", "BAR"), "Expect NOP to return 0"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableToIntFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableToIntFunctionTest.java deleted file mode 100644 index 97e333542..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableToIntFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableToIntFunction}. - */ -public class FailableToIntFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableToIntFunction func = FailableToIntFunction.nop(); - assertEquals(0, func.applyAsInt("FOO"), "Expect NOP to return 0"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableToLongBiFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableToLongBiFunctionTest.java deleted file mode 100644 index d046771e6..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableToLongBiFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableToLongBiFunction}. - */ -public class FailableToLongBiFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableToLongBiFunction func = FailableToLongBiFunction.nop(); - assertEquals(0, func.applyAsLong("FOO", "BAR"), "Expect NOP to return 0"); - } -} diff --git a/src/test/java/org/apache/commons/lang3/function/FailableToLongFunctionTest.java b/src/test/java/org/apache/commons/lang3/function/FailableToLongFunctionTest.java deleted file mode 100644 index 311e1d84d..000000000 --- a/src/test/java/org/apache/commons/lang3/function/FailableToLongFunctionTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.commons.lang3.function; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -/** - * Tests {@link FailableToLongFunction}. - */ -public class FailableToLongFunctionTest { - @Test - public void testNop() throws Throwable { - final FailableToLongFunction func = FailableToLongFunction.nop(); - assertEquals(0, func.applyAsLong("Foo"), "Expect NOP to return 0"); - } -}