Starting to add unit tests for PacketType.

This commit is contained in:
Kristian S. Stangeland 2013-12-10 22:57:43 +01:00
parent 17a5b06577
commit ee53fc0d5f

View File

@ -0,0 +1,21 @@
package com.comphenix.protocol;
import static org.junit.Assert.*;
import org.junit.BeforeClass;
import org.junit.Test;
import com.comphenix.protocol.PacketType.Protocol;
import com.comphenix.protocol.PacketType.Sender;
public class PacketTypeTest {
@BeforeClass
public static void initializeReflection() throws IllegalAccessException {
BukkitInitialization.initializePackage();
}
@Test
public void testFindCurrent() {
assertEquals(PacketType.Play.Client.STEER_VEHICLE, PacketType.findCurrent(Protocol.PLAY, Sender.CLIENT, 12));
}
}