Class MessageAsserts


  • public class MessageAsserts
    extends java.lang.Object
    Assertions on JMS/Netarkivet messages
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageAsserts()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertMessageOk​(java.lang.String s, NetarkivetMessage msg)
      Assert that a message is ok, and if not, print out the error message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • assertMessageOk

        public static void assertMessageOk​(java.lang.String s,
                                           NetarkivetMessage msg)
        Assert that a message is ok, and if not, print out the error message.
        Parameters:
        s - A string explaining what was expected to happen, e.g. "Get message on existing file should reply ok"
        msg - The message to check the status of