mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
fix failing test
This commit is contained in:
parent
39b0e87b9a
commit
9f7dbc23f6
@ -1,13 +1,11 @@
|
|||||||
package com.gmail.nossr50.util.text;
|
package com.gmail.nossr50.util.text;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.datatypes.skills.SuperAbilityType;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.EntityType;
|
import org.bukkit.entity.EntityType;
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
import org.junit.jupiter.api.Test;
|
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.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
class StringUtilsTest {
|
class StringUtilsTest {
|
||||||
@ -35,10 +33,6 @@ class StringUtilsTest {
|
|||||||
java.lang.reflect.Field materialCache = StringUtils.class.getDeclaredField("formattedMaterialStrings");
|
java.lang.reflect.Field materialCache = StringUtils.class.getDeclaredField("formattedMaterialStrings");
|
||||||
materialCache.setAccessible(true);
|
materialCache.setAccessible(true);
|
||||||
((java.util.Map<?, ?>) materialCache.get(null)).clear();
|
((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) {
|
} catch (NoSuchFieldException | IllegalAccessException e) {
|
||||||
fail("Failed to clear caches: " + e.getMessage());
|
fail("Failed to clear caches: " + e.getMessage());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user