test(document): getThumbnailUrl returns null when thumbnailKey is null

First TDD step for centralising the thumbnail URL convention on the
Document entity (#309). Adds a stub getter returning null and a test
that locks the "no key → no URL" branch.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-23 21:45:33 +02:00
parent 0b33f323ee
commit 096f66eb15
2 changed files with 27 additions and 0 deletions

View File

@@ -131,4 +131,8 @@ public class Document {
@Enumerated(EnumType.STRING)
@Builder.Default
private Set<TrainingLabel> trainingLabels = new HashSet<>();
public String getThumbnailUrl() {
return null;
}
}