Starting to add unit tests for PacketType.
Dieser Commit ist enthalten in:
Ursprung
17a5b06577
Commit
ee53fc0d5f
21
ProtocolLib/src/test/java/com/comphenix/protocol/PacketTypeTest.java
Normale Datei
21
ProtocolLib/src/test/java/com/comphenix/protocol/PacketTypeTest.java
Normale Datei
@ -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));
|
||||
}
|
||||
}
|
In neuem Issue referenzieren
Einen Benutzer sperren