mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-08-01 02:15:58 -04:00
Changed Holocore to use TCP. No big deal
This commit is contained in:
@@ -29,8 +29,6 @@ package network.encryption;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import network.packets.soe.Acknowledge;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -99,16 +97,4 @@ public class TestEncryption {
|
||||
// }
|
||||
// }
|
||||
|
||||
@Test
|
||||
public void testAcknowledge() {
|
||||
Random r = new Random();
|
||||
int crc = r.nextInt();
|
||||
System.out.println(Integer.toHexString(crc));
|
||||
Acknowledge a = new Acknowledge((short) 5);
|
||||
byte [] data = a.encode().array();
|
||||
byte [] encoded = Encryption.encode(data, crc);
|
||||
byte [] decoded = Encryption.decode(encoded, crc);
|
||||
Assert.assertArrayEquals(data, decoded);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user