Class LittleEndianRoundTripTest

java.lang.Object
tools.data.LittleEndianRoundTripTest

public class LittleEndianRoundTripTest extends Object
Round-trip unit tests for the packet little-endian layer. Writes primitives + a maple ASCII string with MaplePacketLittleEndianWriter, then reads them back via LittleEndianAccessor (wrapping the produced bytes in a ByteArrayByteStream) and asserts equality. All three classes are plain POJOs with no heavy static initialization and no DB / wz / network / Timer dependency, so the reader can be constructed standalone. Part of the phase-0 safety net (must compile under JDK 8 and always pass; wired into ./gradlew build).
  • Constructor Details

    • LittleEndianRoundTripTest

      public LittleEndianRoundTripTest()
  • Method Details

    • int_roundTrips

      public void int_roundTrips()
    • short_roundTrips

      public void short_roundTrips()
    • long_roundTrips

      public void long_roundTrips()
    • negativeInt_roundTrips

      public void negativeInt_roundTrips()
    • mapleAsciiString_roundTrips

      public void mapleAsciiString_roundTrips()
    • mixedSequence_roundTripsInOrder

      public void mixedSequence_roundTripsInOrder()