@@ -0,0 +1,2970 @@
+/*%0A * Copyright 2019, TeamDev. All rights reserved.%0A *%0A * Redistribution and use in source and/or binary forms, with or without%0A * modification, must retain the above copyright notice and the following%0A * disclaimer.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR%0A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT%0A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,%0A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT%0A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,%0A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY%0A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT%0A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE%0A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0A%0Apackage io.spine.server;%0A%0Aimport org.junit.jupiter.api.DisplayName;%0Aimport org.junit.jupiter.api.Nested;%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertFalse;%0Aimport static org.junit.jupiter.api.Assertions.assertTrue;%0A%0A@DisplayName(%22SystemFeatures should%22)%0Aclass SystemFeaturesTest %7B%0A%0A    @Nested%0A    @DisplayName(%22by default%22)%0A    class Defaults %7B%0A%0A        @Test%0A        @DisplayName(%22enable aggregate mirroring%22)%0A        void mirrors() %7B%0A            SystemFeatures features = SystemFeatures.defaults();%0A            assertTrue(features.includeAggregateMirroring());%0A        %7D%0A%0A        @Test%0A        @DisplayName(%22disable command log%22)%0A        void commands() %7B%0A            SystemFeatures features = SystemFeatures.defaults();%0A            assertFalse(features.includeCommandLog());%0A        %7D%0A%0A        @Test%0A        @DisplayName(%22disable event store%22)%0A        void events() %7B%0A            SystemFeatures features = SystemFeatures.defaults();%0A            assertFalse(features.includePersistentEvents());%0A        %7D%0A    %7D%0A%0A    @Nested%0A    @DisplayName(%22configure%22)%0A    class Configure %7B%0A        @Test%0A        @DisplayName(%22aggregate mirroring%22)%0A        void mirrors() %7B%0A            SystemFeatures features = SystemFeatures%0A                    .defaults()%0A                    .disableAggregateQuerying();%0A            assertFalse(features.includeAggregateMirroring());%0A        %7D%0A%0A        @Test%0A        @DisplayName(%22command log%22)%0A        void commands() %7B%0A            SystemFeatures features = SystemFeatures%0A                    .defaults()%0A                    .enableCommandLog();%0A            assertTrue(features.includeCommandLog());%0A        %7D%0A%0A        @Test%0A        @DisplayName(%22event store%22)%0A        void events() %7B%0A            SystemFeatures features = SystemFeatures%0A                    .defaults()%0A                    .persistEvents();%0A            assertTrue(features.includePersistentEvents());%0A        %7D%0A    %7D%0A%7D%0A

Add tests for SystemFeatures