@Test(expected = IllegalArgumentException.class) public void getCurrentStateVersionThrows() throws Exception { StateVersionImpl.getCurrentStateVersion(invalidGetCurrentStateVersionInputs); }
@NotNull public static Map<String, String> getCurrentStateVersion(@NotNull final TerraformStateVersionInputs getCurrentStateVersionInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(getCurrentStateVersionUrl(getCurrentStateVersionInputs.getWorkspaceId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); httpClientInputs.setHeaders(getAuthHeaders(getCurrentStateVersionInputs.getCommonInputs().getAuthToken())); httpClientInputs.setContentType(APPLICATION_VND_API_JSON); setCommonHttpInputs(httpClientInputs, getCurrentStateVersionInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); }
StateVersionImpl { @NotNull public static Map<String, String> getCurrentStateVersion(@NotNull final TerraformStateVersionInputs getCurrentStateVersionInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(getCurrentStateVersionUrl(getCurrentStateVersionInputs.getWorkspaceId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); httpClientInputs.setHeaders(getAuthHeaders(getCurrentStateVersionInputs.getCommonInputs().getAuthToken())); httpClientInputs.setContentType(APPLICATION_VND_API_JSON); setCommonHttpInputs(httpClientInputs, getCurrentStateVersionInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); } }
StateVersionImpl { @NotNull public static Map<String, String> getCurrentStateVersion(@NotNull final TerraformStateVersionInputs getCurrentStateVersionInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(getCurrentStateVersionUrl(getCurrentStateVersionInputs.getWorkspaceId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); httpClientInputs.setHeaders(getAuthHeaders(getCurrentStateVersionInputs.getCommonInputs().getAuthToken())); httpClientInputs.setContentType(APPLICATION_VND_API_JSON); setCommonHttpInputs(httpClientInputs, getCurrentStateVersionInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); }  }
StateVersionImpl { @NotNull public static Map<String, String> getCurrentStateVersion(@NotNull final TerraformStateVersionInputs getCurrentStateVersionInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(getCurrentStateVersionUrl(getCurrentStateVersionInputs.getWorkspaceId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); httpClientInputs.setHeaders(getAuthHeaders(getCurrentStateVersionInputs.getCommonInputs().getAuthToken())); httpClientInputs.setContentType(APPLICATION_VND_API_JSON); setCommonHttpInputs(httpClientInputs, getCurrentStateVersionInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); }  @NotNull static Map<String, String> getCurrentStateVersion(@NotNull final TerraformStateVersionInputs
                                                                     getCurrentStateVersionInputs); @NotNull static String getCurrentStateVersionPath(@NotNull final String workspaceId); }
StateVersionImpl { @NotNull public static Map<String, String> getCurrentStateVersion(@NotNull final TerraformStateVersionInputs getCurrentStateVersionInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(getCurrentStateVersionUrl(getCurrentStateVersionInputs.getWorkspaceId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); httpClientInputs.setHeaders(getAuthHeaders(getCurrentStateVersionInputs.getCommonInputs().getAuthToken())); httpClientInputs.setContentType(APPLICATION_VND_API_JSON); setCommonHttpInputs(httpClientInputs, getCurrentStateVersionInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); }  @NotNull static Map<String, String> getCurrentStateVersion(@NotNull final TerraformStateVersionInputs
                                                                     getCurrentStateVersionInputs); @NotNull static String getCurrentStateVersionPath(@NotNull final String workspaceId);  }