@@ -0,0 +1,2007 @@
+/*%0A * Copyright (c) 2019.%0A *%0A * This file is part of AvaIre.%0A *%0A * AvaIre is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * AvaIre is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A *%0A * You should have received a copy of the GNU General Public License%0A * along with AvaIre.  If not, see %3Chttps://www.gnu.org/licenses/%3E.%0A *%0A *%0A */%0A%0Apackage com.avairebot.utilities;%0A%0Aimport com.avairebot.BaseTest;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertEquals;%0A%0Apublic class StringReplacementTests extends BaseTest %7B%0A%0A    @Test%0A    public void testReplaceAllReplacesFoundKeysCorrectly() %7B%0A        assertEquals(%22Hello, Ava%22, StringReplacementUtil.replaceAll(%0A            %22Hello, World%22, %22World%22, %22Ava%22%0A        ));%0A    %7D%0A%0A    @Test%0A    public void testReplaceAllReplacesSpecialCharacters() %7B%0A        assertEquals(%22Hello, Ava!%22, StringReplacementUtil.replaceAll(%0A            %22Hello, :name!%22, %22:name%22, %22Ava%22%0A        ));%0A        assertEquals(%22Hello, Ava!%22, StringReplacementUtil.replaceAll(%0A            %22Hello, %5B:&%25s%5D!%22, %22%5B:&%25s%5D%22, %22Ava%22%0A        ));%0A        assertEquals(%22Hello, Ava!%22, StringReplacementUtil.replaceAll(%0A            %22Hello, %5B:&%25s%5D!%22, %22%5B:&%25s%5D%22, %22Ava%22%0A        ));%0A        assertEquals(%22Hello, Ava!%22, StringReplacementUtil.replaceAll(%0A            %22Hello, $%7B:name%7D!%22, %22$%7B:name%7D%22, %22Ava%22%0A        ));%0A    %7D%0A%0A    @Test%0A    public void testReplaceAllOccurrencesOfKey() %7B%0A        assertEquals(%22PotatoPotatoPotato%22, StringReplacementUtil.replaceAll(%0A            %22...%22, %22.%22, %22Potato%22%0A        ));%0A        assertEquals(%22-AvaIre-%22, StringReplacementUtil.replaceAll(%0A            %22%25AvaIre%25%22, %22%25%22, %22-%22%0A        ));%0A    %7D%0A%7D%0A

Add string replacement utility tests