improved anonymization

This commit is contained in:
2024-06-11 20:35:23 +02:00
parent 2ca997fca9
commit c293f20559
3 changed files with 28 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ package de.anxietyprime.swajodel;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.Optional;
import java.util.Vector;
@SpringBootTest
class SwaJodelApplicationTests {
@@ -25,7 +25,7 @@ class SwaJodelApplicationTests {
post.comments.add(new JodelPost(1001));
post.comments.add(new JodelPost(1001));
post.anonymize(Optional.empty());
post.anonymize(new Vector<Long>());
assert (post.anonymousID == 0);
assert (post.comments.get(0).anonymousID == 1);