Interface MessageTarget

All Known Implementing Classes:
AbstractHorseMock, AbstractProjectileMock, AbstractSkeletonMock, AgeableMock, AllayMock, AmbientMock, AnimalsMock, ArmorStandMock, ChestedHorseMock, ConsoleCommandSenderMock, CreatureMock, EntityMock, ExperienceOrbMock, FireworkMock, FishHookMock, HangingMock, HumanEntityMock, ItemEntityMock, LivingEntityMock, MinecartMock, MobMock, MonsterMock, PlayerMock, ProjectileMock, SimpleEntityMock, SimpleMobMock, SimpleMonsterMock, TameableAnimalMock, VehicleMock, ZombieMock
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MessageTarget
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Asserts that more messages were received by the message target.
    default void
    assertSaid(@NotNull String expected)
    Asserts that a specific message was not received next by the message target.
    Returns the next message that was sent to the target.
  • Method Details

    • nextMessage

      String nextMessage()
      Returns the next message that was sent to the target.
      Returns:
      The next message sent to the target.
    • assertSaid

      default void assertSaid(@NotNull @NotNull String expected)
      Asserts that a specific message was not received next by the message target.
      Parameters:
      expected - The message that should have been received by the target.
    • assertNoMoreSaid

      default void assertNoMoreSaid()
      Asserts that more messages were received by the message target.