Fix FlatFile leaderboards not working in certain situations + added leaderboards unit test

This commit is contained in:
nossr50
2021-04-15 11:53:23 -07:00
parent 4f5f3aff80
commit e42eeb1dc4
7 changed files with 47 additions and 22 deletions

View File

@@ -2,8 +2,8 @@ package com.gmail.nossr50.util.text;
import net.kyori.adventure.text.TextComponent;
import net.kyori.adventure.text.format.NamedTextColor;
import org.junit.Assert;
import org.junit.Test;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
/**
* This Unit Test checks if Adventure was set up correctly and works as expected.
@@ -26,7 +26,6 @@ public class TextUtilsTest {
*/
TextComponent component = TextUtils.colorizeText(inputText);
Assert.assertEquals("Looks like Adventure is not working correctly.",
NamedTextColor.DARK_RED, component.color());
Assertions.assertEquals(NamedTextColor.DARK_RED, component.color(), "Looks like Adventure is not working correctly.");
}
}