Skip to content

Commit

Permalink
UPDATE StaticMessagePlaceholdersTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguine6660 committed Dec 13, 2023
1 parent 0282bba commit a83216a
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/test/java/tests/StaticMessagePlaceholdersTest.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* Copyright (c) 2023 - present | sanguine6660 <sanguine6660@gmail.com>
* Copyright (c) 2023 - present | izanagicraft.com <contact@izanagicraft.com>
* Copyright (c) 2023 - present | izanagicraft.com team and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package tests;

import com.izanagicraft.messages.StaticMessagePlaceholders;
Expand Down Expand Up @@ -25,7 +44,7 @@ void setUp() {
@Test
void testFastFormatWithDefaultReplacements() {
String result = StaticMessagePlaceholders.fastFormat("Hello ${name}");
assertEquals("Hello ", result);
assertEquals("Hello null", result);
}

@Test
Expand Down

0 comments on commit a83216a

Please sign in to comment.