Fix test createSingleGroup
This commit is contained in:
@ -8,6 +8,8 @@ import org.junit.jupiter.api.BeforeEach;
|
|||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertNull;
|
||||||
|
|
||||||
class GroupTest {
|
class GroupTest {
|
||||||
|
|
||||||
@ -28,6 +30,9 @@ class GroupTest {
|
|||||||
|
|
||||||
group.applyEvent(createGroupEvent);
|
group.applyEvent(createGroupEvent);
|
||||||
assertThat(group.getId()).isEqualTo(1L);
|
assertThat(group.getId()).isEqualTo(1L);
|
||||||
|
assertNull(group.getParent());
|
||||||
|
assertEquals(GroupType.LECTURE, group.getType());
|
||||||
|
assertEquals(Visibility.PRIVATE, group.getVisibility());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verwendet CreateGroupEvent
|
// Verwendet CreateGroupEvent
|
||||||
|
|||||||
Reference in New Issue
Block a user