Class BaseExpectations.ReturnField

  • All Implemented Interfaces:
    org.hamcrest.SelfDescribing, org.jmock.api.Action, org.jmock.api.Invokable
    Enclosing class:
    BaseExpectations

    protected static final class BaseExpectations.ReturnField
    extends java.lang.Object
    implements org.jmock.api.Action
    • Constructor Summary

      Constructors 
      Constructor Description
      ReturnField​(java.lang.Object container, java.lang.String fieldName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void describeTo​(org.hamcrest.Description description)  
      java.lang.Object invoke​(org.jmock.api.Invocation invocation)  
      • Methods inherited from class java.lang.Object

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

      • ReturnField

        public ReturnField​(java.lang.Object container,
                           java.lang.String fieldName)
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • describeTo

        public void describeTo​(org.hamcrest.Description description)
        Specified by:
        describeTo in interface org.hamcrest.SelfDescribing
      • invoke

        public java.lang.Object invoke​(org.jmock.api.Invocation invocation)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface org.jmock.api.Invokable
        Throws:
        java.lang.Throwable