@@ -0,0 +1,2652 @@
+/*%0A * Copyright 2006-2007 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * 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.openspaces.utest.remoting;%0A%0Aimport java.lang.reflect.Method;%0Aimport java.util.Map;%0A%0Aimport com.gigaspaces.internal.reflection.IMethod;%0Aimport junit.framework.TestCase;%0Aimport org.openspaces.remoting.RemotingUtils;%0Aimport org.openspaces.remoting.RemotingUtils.MethodHash;%0A%0A/**%0A * GS-8294: Methods of a Remoting Service interface are not included when it extends from another interface%0A * @author moran%0A */%0Apublic class RemotingUtilsTests extends TestCase %7B%0A%0A    @Override%0A    protected void setUp() throws Exception %7B%0A    %7D%0A%0A    public void testFastReflection() %7B%0A        fastReflection(true);%0A    %7D%0A    %0A    public void testStandardReflection() %7B%0A        fastReflection(false);%0A    %7D%0A    %0A    private void fastReflection(boolean fastReflection) %7B%0A        Map%3CMethodHash, IMethod%3E mapA = RemotingUtils.buildHashToMethodLookupForInterface(A.class, fastReflection);%0A        assertEquals(1, mapA.values().size());%0A        %0A        Map%3CMethodHash, IMethod%3E mapB = RemotingUtils.buildHashToMethodLookupForInterface(B.class, fastReflection);%0A        assertEquals(2, mapB.values().size());%0A        %0A        Map%3CMethodHash, IMethod%3E mapC = RemotingUtils.buildHashToMethodLookupForInterface(C.class, fastReflection);%0A        assertEquals(2, mapC.values().size());%0A    %7D%0A    %0A    public void testBuildMethodToHashLookupForInterface() %7B%0A        Map%3CMethod, MethodHash%3E mapA = RemotingUtils.buildMethodToHashLookupForInterface(A.class, %22asyncPrefix%22);%0A        assertEquals(1, mapA.values().size());%0A        %0A        Map%3CMethod, MethodHash%3E mapB = RemotingUtils.buildMethodToHashLookupForInterface(B.class, %22asyncPrefix%22);%0A        assertEquals(2, mapB.values().size());%0A        %0A        Map%3CMethod, MethodHash%3E mapC = RemotingUtils.buildMethodToHashLookupForInterface(C.class, %22asyncPrefix%22);%0A        assertEquals(2, mapC.values().size());%0A    %7D%0A    %0A    public interface A %7B%0A        String a(String s);%0A    %7D%0A    %0A    public interface B extends A %7B%0A        String b(String s);%0A    %7D%0A    %0A    public interface C extends B %7B%0A    %7D%0A%7D%0A

Test RemotingUtils.buildMethodToHashLookupForInterface which calls RemotingUtils.getAllInterfacesForInterface with the relevant change in interface hierarchy.