@Test public void testSetVersionInformation() throws InvocationTargetException { Class[] argClasses = {Map.class}; Object[] argObjects = {request}; invokePrivateStaticMethod(Client.class, "setVersionInformation", argClasses, argObjects); assertEquals(Utility.NVP_LIBRARY, request.get("clientLibrary")); }
private static void setVersionInformation(Map<String, String> request) { request.put(ELEM_CLIENT_LIBRARY, Utility.NVP_LIBRARY); request.put(ELEM_CLIENT_LIBRARY_VERSION, Utility.VERSION); request.put(ELEM_CLIENT_ENVIRONMENT, Utility.ENVIRONMENT); }
Client { private static void setVersionInformation(Map<String, String> request) { request.put(ELEM_CLIENT_LIBRARY, Utility.NVP_LIBRARY); request.put(ELEM_CLIENT_LIBRARY_VERSION, Utility.VERSION); request.put(ELEM_CLIENT_ENVIRONMENT, Utility.ENVIRONMENT); } }
Client { private static void setVersionInformation(Map<String, String> request) { request.put(ELEM_CLIENT_LIBRARY, Utility.NVP_LIBRARY); request.put(ELEM_CLIENT_LIBRARY_VERSION, Utility.VERSION); request.put(ELEM_CLIENT_ENVIRONMENT, Utility.ENVIRONMENT); }  }
Client { private static void setVersionInformation(Map<String, String> request) { request.put(ELEM_CLIENT_LIBRARY, Utility.NVP_LIBRARY); request.put(ELEM_CLIENT_LIBRARY_VERSION, Utility.VERSION); request.put(ELEM_CLIENT_ENVIRONMENT, Utility.ENVIRONMENT); }  static Map<String,String> runTransaction(Map<String,String> request, Properties props); @SuppressWarnings("unchecked") static Map<String, String> runTransaction(
            Map<String, String> request, Properties props,
            Logger _logger, boolean prepare, boolean logTranStart); }
Client { private static void setVersionInformation(Map<String, String> request) { request.put(ELEM_CLIENT_LIBRARY, Utility.NVP_LIBRARY); request.put(ELEM_CLIENT_LIBRARY_VERSION, Utility.VERSION); request.put(ELEM_CLIENT_ENVIRONMENT, Utility.ENVIRONMENT); }  static Map<String,String> runTransaction(Map<String,String> request, Properties props); @SuppressWarnings("unchecked") static Map<String, String> runTransaction(
            Map<String, String> request, Properties props,
            Logger _logger, boolean prepare, boolean logTranStart);  }