@Test public void getQueryParamsTestTwoArgs() { String queryParams = getQueryParams(INCLUDE_VM_DISK_CONFIG_INFO, INCLUDE_VM_NIC_CONFIG_INFO); assertEquals(EXPECTED_QUERY_PARAMS, queryParams); }
@NotNull public static String getQueryParams(String includeVMDiskConfigInfo, final String includeVMNicConfigInfo) { final StringBuilder queryParams = new StringBuilder() .append(Constants.GetVMDetailsConstants.INCLUDE_VM_DISK_CONFIG_INFO) .append(includeVMDiskConfigInfo) .append(AND) .append(Constants.GetVMDetailsConstants.INCLUDE_VM_NIC_CONFIG_INFO) .append(includeVMNicConfigInfo); return queryParams.toString(); }
HttpUtils { @NotNull public static String getQueryParams(String includeVMDiskConfigInfo, final String includeVMNicConfigInfo) { final StringBuilder queryParams = new StringBuilder() .append(Constants.GetVMDetailsConstants.INCLUDE_VM_DISK_CONFIG_INFO) .append(includeVMDiskConfigInfo) .append(AND) .append(Constants.GetVMDetailsConstants.INCLUDE_VM_NIC_CONFIG_INFO) .append(includeVMNicConfigInfo); return queryParams.toString(); } }
HttpUtils { @NotNull public static String getQueryParams(String includeVMDiskConfigInfo, final String includeVMNicConfigInfo) { final StringBuilder queryParams = new StringBuilder() .append(Constants.GetVMDetailsConstants.INCLUDE_VM_DISK_CONFIG_INFO) .append(includeVMDiskConfigInfo) .append(AND) .append(Constants.GetVMDetailsConstants.INCLUDE_VM_NIC_CONFIG_INFO) .append(includeVMNicConfigInfo); return queryParams.toString(); }  }
HttpUtils { @NotNull public static String getQueryParams(String includeVMDiskConfigInfo, final String includeVMNicConfigInfo) { final StringBuilder queryParams = new StringBuilder() .append(Constants.GetVMDetailsConstants.INCLUDE_VM_DISK_CONFIG_INFO) .append(includeVMDiskConfigInfo) .append(AND) .append(Constants.GetVMDetailsConstants.INCLUDE_VM_NIC_CONFIG_INFO) .append(includeVMNicConfigInfo); return queryParams.toString(); }  @NotNull static Proxy getProxy(@NotNull final String proxyHost, final int proxyPort, @NotNull final String proxyUser, @NotNull final String proxyPassword); static void setProxy(@NotNull final HttpClientInputs httpClientInputs,
                                @NotNull final String proxyHost,
                                @NotNull final String proxyPort,
                                @NotNull final String proxyUsername,
                                @NotNull final String proxyPassword); @NotNull static URIBuilder getUriBuilder(String url); @NotNull static String getAuthHeaders(@NotNull final String username, @NotNull final String password); @NotNull static Map<String, String> getOperationResults(@NotNull final Map<String, String> result,
                                                          @NotNull final String successMessage,
                                                          final String failureMessage,
                                                          final String document); static void setSecurityInputs(@NotNull final HttpClientInputs httpClientInputs,
                                         @NotNull final String trustAllRoots,
                                         @NotNull final String x509HostnameVerifier,
                                         @NotNull final String trustKeystore,
                                         @NotNull final String trustPassword,
                                         @NotNull final String keystore,
                                         @NotNull final String keystorePassword); static void setConnectionParameters(HttpClientInputs httpClientInputs,
                                               @NotNull final String connectTimeout,
                                               @NotNull final String socketTimeout,
                                               @NotNull final String keepAlive,
                                               @NotNull final String connectionsMaxPerRoot,
                                               @NotNull final String connectionsMaxTotal,
                                               @NotNull final String preemptiveAuth); static void setTLSParameters(HttpClientInputs httpClientInputs); @NotNull static URIBuilder getUriBuilder(NutanixCommonInputs nutanixCommonInputs); @NotNull static String getQueryParams(String includeVMDiskConfigInfo,
                                        final String includeVMNicConfigInfo); @NotNull static String getQueryParams(String vmLogicalTimestamp); @NotNull static String getTaskDetailsQueryParams(@NotNull String includeSubtasksInfo); @NotNull static String getDeleteVMQueryParams(@NotNull String deleteSnapshots,
                                                @NotNull String logicalTimestamp); @NotNull static String getQueryParams(String filter, String offset, String length,
                                        String sortOrder, String sortAttribute, String includeVMDiskConfigInfo, final String includeVMNicConfigInfo); @NotNull static Map<String, String> getTaskFailureResults(@NotNull String inputName, @NotNull Integer statusCode,
                                                            @NotNull String taskStatus, @NotNull String returnMessage,
                                                            @NotNull String throwable); @NotNull static Map<String, String> getFailureResults(@NotNull String inputName, @NotNull Integer statusCode,
                                                        @NotNull String returnMessage,
                                                        @NotNull String throwable); }
HttpUtils { @NotNull public static String getQueryParams(String includeVMDiskConfigInfo, final String includeVMNicConfigInfo) { final StringBuilder queryParams = new StringBuilder() .append(Constants.GetVMDetailsConstants.INCLUDE_VM_DISK_CONFIG_INFO) .append(includeVMDiskConfigInfo) .append(AND) .append(Constants.GetVMDetailsConstants.INCLUDE_VM_NIC_CONFIG_INFO) .append(includeVMNicConfigInfo); return queryParams.toString(); }  @NotNull static Proxy getProxy(@NotNull final String proxyHost, final int proxyPort, @NotNull final String proxyUser, @NotNull final String proxyPassword); static void setProxy(@NotNull final HttpClientInputs httpClientInputs,
                                @NotNull final String proxyHost,
                                @NotNull final String proxyPort,
                                @NotNull final String proxyUsername,
                                @NotNull final String proxyPassword); @NotNull static URIBuilder getUriBuilder(String url); @NotNull static String getAuthHeaders(@NotNull final String username, @NotNull final String password); @NotNull static Map<String, String> getOperationResults(@NotNull final Map<String, String> result,
                                                          @NotNull final String successMessage,
                                                          final String failureMessage,
                                                          final String document); static void setSecurityInputs(@NotNull final HttpClientInputs httpClientInputs,
                                         @NotNull final String trustAllRoots,
                                         @NotNull final String x509HostnameVerifier,
                                         @NotNull final String trustKeystore,
                                         @NotNull final String trustPassword,
                                         @NotNull final String keystore,
                                         @NotNull final String keystorePassword); static void setConnectionParameters(HttpClientInputs httpClientInputs,
                                               @NotNull final String connectTimeout,
                                               @NotNull final String socketTimeout,
                                               @NotNull final String keepAlive,
                                               @NotNull final String connectionsMaxPerRoot,
                                               @NotNull final String connectionsMaxTotal,
                                               @NotNull final String preemptiveAuth); static void setTLSParameters(HttpClientInputs httpClientInputs); @NotNull static URIBuilder getUriBuilder(NutanixCommonInputs nutanixCommonInputs); @NotNull static String getQueryParams(String includeVMDiskConfigInfo,
                                        final String includeVMNicConfigInfo); @NotNull static String getQueryParams(String vmLogicalTimestamp); @NotNull static String getTaskDetailsQueryParams(@NotNull String includeSubtasksInfo); @NotNull static String getDeleteVMQueryParams(@NotNull String deleteSnapshots,
                                                @NotNull String logicalTimestamp); @NotNull static String getQueryParams(String filter, String offset, String length,
                                        String sortOrder, String sortAttribute, String includeVMDiskConfigInfo, final String includeVMNicConfigInfo); @NotNull static Map<String, String> getTaskFailureResults(@NotNull String inputName, @NotNull Integer statusCode,
                                                            @NotNull String taskStatus, @NotNull String returnMessage,
                                                            @NotNull String throwable); @NotNull static Map<String, String> getFailureResults(@NotNull String inputName, @NotNull Integer statusCode,
                                                        @NotNull String returnMessage,
                                                        @NotNull String throwable);  }