Class CmdTextTest

java.lang.Object
com.kamikazejam.kamicommon.command.KamiCommand
com.kamikazejam.kamicommon.command.impl.kc.CmdTextTest
All Implemented Interfaces:
Active, PluginIdentifiableCommand

public class CmdTextTest extends KamiCommand
Asserts on what VersionedComponent emits, across the whole of its surface.

Every other verification in this library checks packaging: which classes are present, what bytecode level they carry, which provider a version ladder selects. None of them reads a serializer's output, and defects reached releases because of that, click() for nine of them. Each case here builds a component, takes the form this server's tier sends, and asserts on the structural shape the receiving end reads rather than on payload text appearing somewhere.

Console mode is the reason this exists. Verification that needs a person logged in does not get run across a version matrix, so the assertions live where a script can drive them: one PASS or FAIL line per case and a RESULT line carrying counts, with failures logged at Level.SEVERE. Player mode sends the same components to a client, for the one question a wire assertion cannot answer, which is whether the client draws them.

The msg. cases cover AbstractMessageManager, which is a second and entirely separate click and hover implementation reached only through AbstractMessageManager.processAndSend(CommandSender, KMessage). It shares no code with VersionedComponent, so a defect in one is invisible to every case that exercises the other.

  • Constructor Details

    • CmdTextTest

      public CmdTextTest()
  • Method Details