Class BroadcastServiceTest

java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.test.BroadcastServiceTest
All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class BroadcastServiceTest extends HybrisJUnit4Test
Test UDPBroadcastMethod by causing a item modification and listening to the message by creating a second broadcast method instance.
  • Constructor Details

    • BroadcastServiceTest

      public BroadcastServiceTest()
  • Method Details

    • testLoopBackMethod

      public void testLoopBackMethod() throws UnknownHostException, InterruptedException
      Throws:
      UnknownHostException
      InterruptedException
    • testInvalidationViaUDP

      public void testInvalidationViaUDP()
    • testMessageSendingQueue

      public void testMessageSendingQueue()
      Tests PLA-8550: whenever the message sending queue was filled up the calling thread did not block for the specified time but got a error immediately.

      So the tests tries to send considerably more messages than queue size could allow and tries to get that error again. If the test finished the error must be fixed.

    • testOneLargeUDPPacket

      public void testOneLargeUDPPacket() throws InterruptedException
      Throws:
      InterruptedException
    • testRandomPacketSizesAndPacketAmounts

      public void testRandomPacketSizesAndPacketAmounts() throws InterruptedException
      Throws:
      InterruptedException