Archiviert
13
0

Starting to add unit tests for PacketType.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2013-12-10 22:57:43 +01:00
Ursprung 17a5b06577
Commit ee53fc0d5f

Datei anzeigen

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