Class AbstractOfficeFloorJUnit

    • Constructor Detail

      • AbstractOfficeFloorJUnit

        public AbstractOfficeFloorJUnit()
    • Method Detail

      • doFail

        protected abstract void doFail​(java.lang.String message)
        Undertake JUnit version specific fail.
        Parameters:
        message - Message for the fail.
      • doFail

        protected abstract java.lang.Error doFail​(java.lang.Throwable cause)
        Undertake JUnit version specific fail.
        Parameters:
        cause - Cause of the failure.
        Returns:
        Error to propagate.
      • setDependencyLoadTimeout

        protected void setDependencyLoadTimeout​(long dependencyLoadTimeout)
        Specifies the dependency load timeout.
        Parameters:
        dependencyLoadTimeout - Dependency load timeout.
      • beforeAll

        protected void beforeAll()
                          throws java.lang.Exception
        Undertakes the before all logic.
        Throws:
        java.lang.Exception - If fails.
      • beforeEach

        protected void beforeEach​(java.lang.Object testInstance)
                           throws java.lang.Exception
        Undertakes the before each logic.
        Parameters:
        testInstance - Test instance.
        Throws:
        java.lang.Exception - If fails.
      • afterEach

        protected void afterEach()
                          throws java.lang.Exception
        Undertakes the after each logic.
        Throws:
        java.lang.Exception - If fails.
      • afterAll

        protected void afterAll()
                         throws java.lang.Exception
        Undertakes the after all logic.
        Throws:
        java.lang.Exception - If fails.
      • openOfficeFloor

        protected void openOfficeFloor()
                                throws java.lang.Exception
        Opens the OfficeFloor.
        Throws:
        java.lang.Exception - If fails to open the OfficeFloor.
      • isDependencyAvailable

        protected boolean isDependencyAvailable​(FromOffice fromOffice,
                                                StatePoint statePoint)
                                         throws java.lang.Exception
        Determines if the dependency is available.
        Parameters:
        fromOffice - FromOffice.
        statePoint - StatePoint.
        Returns:
        true if the dependency is available.
        Throws:
        java.lang.Exception - If fails to determine dependency available.
      • getDependency

        protected java.lang.Object getDependency​(FromOffice fromOffice,
                                                 StatePoint statePoint)
                                          throws java.lang.Exception
        Obtains the qualifier for the StatePoint.
        Parameters:
        fromOffice - FromOffice.
        statePoint - StatePoint.
        Returns:
        Dependency.
        Throws:
        java.lang.Exception - If fails to obtain the dependency.
      • closeOfficeFloor

        protected void closeOfficeFloor()
                                 throws java.lang.Exception
        Closes the OfficeFloor.
        Throws:
        java.lang.Exception - If fails to close the OfficeFloor.