@Test public void getCurrentStateVersionPathTest() { final String path = getCurrentStateVersionPath(invalidGetCurrentStateVersionInputs.getWorkspaceId()); assertEquals(EXPECTED_GET_CURRENT_STATE_VERSION_PATH, path); }
@NotNull public static String getCurrentStateVersionPath(@NotNull final String workspaceId) { StringBuilder pathString = new StringBuilder() .append(API) .append(API_VERSION) .append(WORKSPACE_PATH) .append(PATH_SEPARATOR) .append(workspaceId) .append(CURRENT_STATE_VERSION_PATH); return pathString.toString(); }
StateVersionImpl { @NotNull public static String getCurrentStateVersionPath(@NotNull final String workspaceId) { StringBuilder pathString = new StringBuilder() .append(API) .append(API_VERSION) .append(WORKSPACE_PATH) .append(PATH_SEPARATOR) .append(workspaceId) .append(CURRENT_STATE_VERSION_PATH); return pathString.toString(); } }
StateVersionImpl { @NotNull public static String getCurrentStateVersionPath(@NotNull final String workspaceId) { StringBuilder pathString = new StringBuilder() .append(API) .append(API_VERSION) .append(WORKSPACE_PATH) .append(PATH_SEPARATOR) .append(workspaceId) .append(CURRENT_STATE_VERSION_PATH); return pathString.toString(); }  }
StateVersionImpl { @NotNull public static String getCurrentStateVersionPath(@NotNull final String workspaceId) { StringBuilder pathString = new StringBuilder() .append(API) .append(API_VERSION) .append(WORKSPACE_PATH) .append(PATH_SEPARATOR) .append(workspaceId) .append(CURRENT_STATE_VERSION_PATH); return pathString.toString(); }  @NotNull static Map<String, String> getCurrentStateVersion(@NotNull final TerraformStateVersionInputs
                                                                     getCurrentStateVersionInputs); @NotNull static String getCurrentStateVersionPath(@NotNull final String workspaceId); }
StateVersionImpl { @NotNull public static String getCurrentStateVersionPath(@NotNull final String workspaceId) { StringBuilder pathString = new StringBuilder() .append(API) .append(API_VERSION) .append(WORKSPACE_PATH) .append(PATH_SEPARATOR) .append(workspaceId) .append(CURRENT_STATE_VERSION_PATH); return pathString.toString(); }  @NotNull static Map<String, String> getCurrentStateVersion(@NotNull final TerraformStateVersionInputs
                                                                     getCurrentStateVersionInputs); @NotNull static String getCurrentStateVersionPath(@NotNull final String workspaceId);  }