Class HexToolTest

java.lang.Object
tools.HexToolTest

public class HexToolTest extends Object
Deterministic unit tests for HexTool. Part of the phase-0 safety net (must compile under JDK 8 and always pass; wired into ./gradlew build). Expected values are derived from the bit logic in HexTool.java. No DB / wz / network / Timer / static game data is touched.
  • Constructor Details

    • HexToolTest

      public HexToolTest()
  • Method Details

    • toString_singleByte_isTwoUpperHexDigits

      public void toString_singleByte_isTwoUpperHexDigits()
    • toString_byteArray_isSpaceSeparatedNoTrailingSpace

      public void toString_byteArray_isSpaceSeparatedNoTrailingSpace()
    • toString_int_isLowercaseHexWithoutPadding

      public void toString_int_isLowercaseHexWithoutPadding()
    • getByteArrayFromHexString_parsesHexIgnoringSpaces

      public void getByteArrayFromHexString_parsesHexIgnoringSpaces()
    • getByteArrayFromHexString_isCaseInsensitive

      public void getByteArrayFromHexString_isCaseInsensitive()
    • byteArrayHexRoundTrip

      public void byteArrayHexRoundTrip()
    • getOpcodeToString_isZeroPaddedUppercaseWithPrefix

      public void getOpcodeToString_isZeroPaddedUppercaseWithPrefix()