@@ -0,0 +1,2171 @@
+/*%0A * Copyright 2018, 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.string;%0A%0Aimport com.google.common.base.Converter;%0Aimport org.junit.jupiter.api.DisplayName;%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport static org.junit.jupiter.api.Assertions.*;%0A%0A@DisplayName(%22EnumStringifier should%22)%0Aclass EnumStringifierTest %7B%0A%0A    @Test%0A    @DisplayName(%22convert values to String and back%22)%0A    void convert() %7B%0A        DayOfWeekStringifier stringifier = DayOfWeekStringifier.INSTANCE;%0A        Converter%3CString, DayOfWeek%3E reverse = stringifier.reverse();%0A%0A        for (DayOfWeek value : DayOfWeek.values()) %7B%0A            String str = stringifier.convert(value);%0A            assertEquals(value, reverse.convert(str));%0A        %7D%0A    %7D%0A%0A%0A    private enum DayOfWeek %7B%0A        MONDAY, TUESDAY, WEDNESDAY,%0A        THURSDAY, FRIDAY, SATURDAY, SUNDAY%0A    %7D%0A%0A    private static final class DayOfWeekStringifier extends EnumStringifier%3CDayOfWeek%3E %7B%0A%0A        private static final long serialVersionUID = 0L;%0A        private static final DayOfWeekStringifier INSTANCE = new DayOfWeekStringifier();%0A%0A        private DayOfWeekStringifier() %7B%0A            super(DayOfWeekStringifier.class.getName(), DayOfWeek.class);%0A        %7D%0A    %7D%0A%7D%0A

Test `EnumStringifier`