Undo mocking in MinecraftReflectionTest when we're done.

This commit is contained in:
Kristian S. Stangeland 2013-12-04 19:22:51 +01:00
parent f94b060591
commit 7b813fa4e6
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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());