Class ServerProviderConformanceTest.ConformanceException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    ServerProviderConformanceTest

    public static class ServerProviderConformanceTest.ConformanceException
    extends java.lang.RuntimeException

    An instance of this exception is thrown within the conformance tests that imply that they will throw an exception. If your ServerProvider is capable of exposing such information, then this class is what you need to look for in the output.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ConformanceException()  
      ConformanceException​(com.yahoo.jdisc.test.ServerProviderConformanceTest.Event peekEvent)
      In some tests, we want to ensure that a thrown exception has been handled by the framework before we do something else.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • ConformanceException

        public ConformanceException()
      • ConformanceException

        public ConformanceException​(com.yahoo.jdisc.test.ServerProviderConformanceTest.Event peekEvent)
        In some tests, we want to ensure that a thrown exception has been handled by the framework before we do something else. There is no official hook to receive notification that the framework has handled an exception, but we assume (actually know) that the message of the exception will be accessed to create an error message. The provided event will signal that the exception has been _looked at_ by the framework, which we treat as synonymous with "handled" (due to synchronization in the framework, it is).
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable