mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-28 05:35:28 +01:00
Undo mocking in MinecraftReflectionTest when we're done.
This commit is contained in:
parent
f94b060591
commit
7b813fa4e6
@ -33,8 +33,6 @@ import java.util.Set;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import javassist.bytecode.CodeAttribute.RuntimeCopyException;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.util.io.netty.buffer.ByteBuf;
|
||||
|
@ -5,6 +5,7 @@ import static org.junit.Assert.*;
|
||||
import net.minecraft.server.v1_7_R1.NBTCompressedStreamTools;
|
||||
import net.minecraft.util.com.google.common.collect.Maps;
|
||||
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
@ -22,6 +23,11 @@ public class MinecraftReflectionTest {
|
||||
);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void undoMocking() {
|
||||
MinecraftReflection.minecraftPackage = null;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNbtStreamTools() {
|
||||
assertEquals(NBTCompressedStreamTools.class, MinecraftReflection.getNbtCompressedStreamToolsClass());
|
||||
|
Loading…
Reference in New Issue
Block a user