@Test public void testProcessArgs_emptyMethod() throws Exception { Object[] args = new Object[] {}; Object[] processedArgs = soapClientHandler.processSoapArguments(MockSoapClient.class.getMethod("emptyCall"), args); assertEquals(0, processedArgs.length); }
protected Object[] processSoapArguments(Method soapClientMethod, Object[] args) { if (args == null) { return null; } int argsCount = Math.max(soapClientMethod.getParameterTypes().length, args.length); return Arrays.copyOf(args, argsCount); }
SoapClientHandler implements SoapClientHandlerInterface<T> { protected Object[] processSoapArguments(Method soapClientMethod, Object[] args) { if (args == null) { return null; } int argsCount = Math.max(soapClientMethod.getParameterTypes().length, args.length); return Arrays.copyOf(args, argsCount); } }
SoapClientHandler implements SoapClientHandlerInterface<T> { protected Object[] processSoapArguments(Method soapClientMethod, Object[] args) { if (args == null) { return null; } int argsCount = Math.max(soapClientMethod.getParameterTypes().length, args.length); return Arrays.copyOf(args, argsCount); } protected  SoapClientHandler(); }
SoapClientHandler implements SoapClientHandlerInterface<T> { protected Object[] processSoapArguments(Method soapClientMethod, Object[] args) { if (args == null) { return null; } int argsCount = Math.max(soapClientMethod.getParameterTypes().length, args.length); return Arrays.copyOf(args, argsCount); } protected  SoapClientHandler(); @Override Method getSoapClientMethod(T soapClient, Method method); }
SoapClientHandler implements SoapClientHandlerInterface<T> { protected Object[] processSoapArguments(Method soapClientMethod, Object[] args) { if (args == null) { return null; } int argsCount = Math.max(soapClientMethod.getParameterTypes().length, args.length); return Arrays.copyOf(args, argsCount); } protected  SoapClientHandler(); @Override Method getSoapClientMethod(T soapClient, Method method);  }