improved anonymization
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user