Class Assertions


  • public class Assertions
    extends java.lang.Object
    Assertions provided by Filibuster for writing conditional, fault-based assertions.
    • Constructor Summary

      Constructors 
      Constructor Description
      Assertions()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean wasFaultInjectedOnMethodWherePayloadContains​(java.lang.String fullyQualifiedMethodName, java.lang.String contains)
      Determine if a fault was injected during the current test execution for a particular request and method.
      • Methods inherited from class java.lang.Object

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

      • Assertions

        public Assertions()
    • Method Detail

      • wasFaultInjectedOnMethodWherePayloadContains

        public static boolean wasFaultInjectedOnMethodWherePayloadContains​(java.lang.String fullyQualifiedMethodName,
                                                                           java.lang.String contains)
        Determine if a fault was injected during the current test execution for a particular request and method.
        Parameters:
        fullyQualifiedMethodName - grpc method in the format Service/Method
        contains - substring to search for
        Returns:
        was fault injected