Remove useless test
This commit is contained in:
parent
5450a16aad
commit
1e0d4d9d07
|
|
@ -1,26 +0,0 @@
|
|||
package org.embeddedt.modernfix.dynamicresources;
|
||||
|
||||
import net.minecraft.client.resources.model.BakedModel;
|
||||
import net.minecraft.client.resources.model.BuiltInModel;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.item.Items;
|
||||
import org.embeddedt.modernfix.testing.util.BootstrapMinecraft;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@BootstrapMinecraft
|
||||
public class DynamicModelCacheTest {
|
||||
@Test
|
||||
public void testCacheReturnsNullForNullGetter() {
|
||||
DynamicModelCache<Item> cache = new DynamicModelCache(k -> null, true);
|
||||
assertNull(cache.get(Items.STONE));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCacheFunctions() {
|
||||
BakedModel model = new BuiltInModel(null, null, false);
|
||||
DynamicModelCache<Item> cache = new DynamicModelCache(k -> model, true);
|
||||
assertEquals(model, cache.get(Items.STONE));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user