From 492cbec41d5b60189178148eafe8a3db86ef39c8 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Fri, 22 Apr 2022 14:18:58 +0200 Subject: [PATCH] fixed tests for german lang --- .../de/srsoftware/widerhall/data/ListMemberTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/de/srsoftware/widerhall/data/ListMemberTest.java b/src/test/java/de/srsoftware/widerhall/data/ListMemberTest.java index 43f0361..3aa457f 100644 --- a/src/test/java/de/srsoftware/widerhall/data/ListMemberTest.java +++ b/src/test/java/de/srsoftware/widerhall/data/ListMemberTest.java @@ -112,7 +112,7 @@ public class ListMemberTest extends TestCase { public void testSafeMap() { var user = new User("email","name","salt","hash",0); var lm = new ListMember(null,user,ListMember.STATE_AWAITING_CONFIRMATION,"token"); - assertEquals(Map.of(EMAIL,"email",NAME,"name",STATE,"awaiting confirmation"),lm.safeMap()); + assertEquals(Map.of(EMAIL,"email",NAME,"name",STATE,"erwartet Bestätigung"),lm.safeMap()); } public void testStateText() { @@ -121,10 +121,10 @@ public class ListMemberTest extends TestCase { var mod = new ListMember(null,null,ListMember.STATE_MODERATOR,null); var await = new ListMember(null,null,ListMember.STATE_AWAITING_CONFIRMATION,null); - assertEquals("subscriber",guest.stateText()); - assertEquals("moderator, owner, subscriber",owner.stateText()); - assertEquals("moderator, subscriber",mod.stateText()); - assertEquals("awaiting confirmation",await.stateText()); + assertEquals("Abonniert",guest.stateText()); + assertEquals("Abonniert, Besitzer, Moderator",owner.stateText()); + assertEquals("Abonniert, Moderator",mod.stateText()); + assertEquals("erwartet Bestätigung",await.stateText()); } public void testToken() {