String fullName;
@SerializedName("private")
boolean isPrivate;
- @SerializedName("url")
- String url;
+ @SerializedName("html_url")
+ String htmlUrl;
@SerializedName("default_branch")
String defaultBranch;
public Repository toRepository() {
return new Repository(this.id, this.name, this.isPrivate, this.fullName,
- this.url, this.defaultBranch);
+ this.htmlUrl, this.defaultBranch);
}
}
}
.get()
.extracting(GithubApplicationClient.Repository::getId, GithubApplicationClient.Repository::getName, GithubApplicationClient.Repository::getFullName,
GithubApplicationClient.Repository::getUrl, GithubApplicationClient.Repository::isPrivate, GithubApplicationClient.Repository::getDefaultBranch)
- .containsOnly(1296269L, "Hello-World", "octocat/Hello-World", "https://github.sonarsource.com/api/v3/repos/octocat/Hello-World", false, "master");
+ .containsOnly(1296269L, "Hello-World", "octocat/Hello-World", "https://github.com/octocat/Hello-World", false, "master");
}
private AppToken mockAppToken() {