readded JodelPost constructor from authorID for tests

This commit is contained in:
2024-05-25 15:53:53 +02:00
parent 4c1699c314
commit c7493a34b6

View File

@@ -83,4 +83,9 @@ public class JodelPost {
this.location = new Location(rs.getLong("longitude"), rs.getLong("latitude"));
this.reactions = new Reactions(rs.getLong("positive"), rs.getLong("negative"));
}
// constructor from authorID for tests
public JodelPost(int authorID) {
this.authorID = (long) authorID;
}
}