Class MockedConstructionImpl<T>

    • Method Detail

      • isClosed

        public boolean isClosed()
        Description copied from interface: ScopedMock
        Checks if this mock is closed.
        Specified by:
        isClosed in interface ScopedMock
        Returns:
        true if this mock is closed.
      • close

        public void close()
        Description copied from interface: ScopedMock
        Closes this scoped mock and throws an exception if already closed.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface ScopedMock
      • closeOnDemand

        public void closeOnDemand()
        Description copied from interface: ScopedMock
        Releases this scoped mock and is non-operational if already released.
        Specified by:
        closeOnDemand in interface ScopedMock
      • assertNotClosed

        private void assertNotClosed()