fix failing test

This commit is contained in:
nossr50 2024-11-02 19:43:46 -07:00
parent 39b0e87b9a
commit 9f7dbc23f6

View File

@ -1,13 +1,11 @@
package com.gmail.nossr50.util.text;
import com.gmail.nossr50.datatypes.skills.SuperAbilityType;
import org.bukkit.Material;
import org.bukkit.entity.EntityType;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import com.gmail.nossr50.datatypes.party.PartyFeature;
import com.gmail.nossr50.datatypes.skills.SuperAbilityType;
import static org.junit.jupiter.api.Assertions.*;
class StringUtilsTest {
@ -35,10 +33,6 @@ class StringUtilsTest {
java.lang.reflect.Field materialCache = StringUtils.class.getDeclaredField("formattedMaterialStrings");
materialCache.setAccessible(true);
((java.util.Map<?, ?>) materialCache.get(null)).clear();
java.lang.reflect.Field partyFeatureCache = StringUtils.class.getDeclaredField("prettyPartyFeatureStringCache");
partyFeatureCache.setAccessible(true);
((java.util.Map<?, ?>) partyFeatureCache.get(null)).clear();
} catch (NoSuchFieldException | IllegalAccessException e) {
fail("Failed to clear caches: " + e.getMessage());
}