Slide 9
Slide 9 text
public class GithubRepository implements Repository {
@Override
public Optional commitBySha(
final String sha) {
return Optional.of(
new Commit(
"Commit from git",
List.of("filea.txt,", "fileb.txt")
)
);
}
@Override
public List commitsByRepo(
final String repository) {
return List.of(
new Commit(
"Commit 1 from git",
List.of("filea.txt,", "fileb.txt")
),
new Commit(
"Commit 2 from git",
List.of("filec.txt,", "filed.txt")
)
);
}
}