@@ -0,0 +1,2992 @@
+/*%0A * Licensed to the Apache Software Foundation (ASF) under one or more%0A * contributor license agreements.  See the NOTICE file distributed with%0A * this work for additional information regarding copyright ownership.%0A * The ASF licenses this file to You under the Apache License, Version 2.0%0A * (the %22License%22); you may not use this file except in compliance with%0A * the License.  You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.apache.commons.lang3.function;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertEquals;%0A%0Aimport java.math.BigInteger;%0Aimport java.util.concurrent.atomic.AtomicReference;%0Aimport java.util.function.Function;%0A%0Aimport org.junit.jupiter.api.Test;%0A%0A/**%0A * Tests %7B@linkTriConsumer%7D.%0A */%0Apublic class TriFunctionTest %7B%0A%0A    @Test%0A    public void testAccept() throws Throwable %7B%0A        final AtomicReference%3CCharacter%3E ref1 = new AtomicReference%3C%3E();%0A        final AtomicReference%3CShort%3E ref2 = new AtomicReference%3C%3E();%0A        final AtomicReference%3CString%3E ref3 = new AtomicReference%3C%3E();%0A        final TriFunction%3CAtomicReference%3CCharacter%3E, AtomicReference%3CShort%3E, AtomicReference%3CString%3E, String%3E tri = (t, u, v) -%3E %7B%0A            ref1.set(Character.valueOf('a'));%0A            ref2.set(Short.valueOf((short) 1));%0A            ref3.set(%22z%22);%0A            return %22ABC%22;%0A        %7D;%0A        assertEquals(%22ABC%22, tri.apply(ref1, ref2, ref3));%0A        assertEquals(Character.valueOf('a'), ref1.get());%0A        assertEquals(Short.valueOf((short) 1), ref2.get());%0A        assertEquals(%22z%22, ref3.get());%0A    %7D%0A%0A    @Test%0A    public void testAndThen() throws Throwable %7B%0A        final AtomicReference%3CCharacter%3E ref1 = new AtomicReference%3C%3E();%0A        final AtomicReference%3CShort%3E ref2 = new AtomicReference%3C%3E();%0A        final AtomicReference%3CString%3E ref3 = new AtomicReference%3C%3E();%0A        final TriFunction%3CAtomicReference%3CCharacter%3E, AtomicReference%3CShort%3E, AtomicReference%3CString%3E, String%3E tri = (t, u, v) -%3E %7B%0A            ref1.set(Character.valueOf('a'));%0A            ref2.set(Short.valueOf((short) 1));%0A            ref3.set(%22z%22);%0A            return %229%22;%0A        %7D;%0A        final Function%3CString, BigInteger%3E after = t -%3E %7B%0A            ref1.set(Character.valueOf('b'));%0A            ref2.set(Short.valueOf((short) 2));%0A            ref3.set(%22zz%22);%0A            return BigInteger.valueOf(Long.parseLong(t)).add(BigInteger.ONE);%0A        %7D;%0A        assertEquals(BigInteger.TEN, tri.andThen(after).apply(ref1, ref2, ref3));%0A        assertEquals(Character.valueOf('b'), ref1.get());%0A        assertEquals(Short.valueOf((short) 2), ref2.get());%0A        assertEquals(%22zz%22, ref3.get());%0A    %7D%0A%0A%7D%0A

Add test case.