Class ApplicationRule

java.lang.Object
org.testfx.api.FxRobot
org.testfx.framework.junit.ApplicationRule
All Implemented Interfaces:
org.junit.rules.TestRule, FxRobotInterface, ApplicationFixture

public class ApplicationRule extends FxRobot implements ApplicationFixture, org.junit.rules.TestRule
  • Field Details

    • start

      private final Consumer<javafx.stage.Stage> start
    • stop

      private final Consumer<javafx.stage.Stage> stop
    • stage

      private javafx.stage.Stage stage
  • Constructor Details

    • ApplicationRule

      public ApplicationRule(Consumer<javafx.stage.Stage> start)
    • ApplicationRule

      public ApplicationRule(Consumer<javafx.stage.Stage> start, Consumer<javafx.stage.Stage> stop)
  • Method Details

    • init

      public void init() throws Exception
      Specified by:
      init in interface ApplicationFixture
      Throws:
      Exception
    • start

      public void start(javafx.stage.Stage stage) throws Exception
      Specified by:
      start in interface ApplicationFixture
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Specified by:
      stop in interface ApplicationFixture
      Throws:
      Exception
    • before

      private void before() throws Exception
      Throws:
      Exception
    • after

      private void after() throws Exception
      Throws:
      Exception
    • externalResource

      private org.junit.runners.model.Statement externalResource(org.junit.runners.model.Statement base)
    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
      Specified by:
      apply in interface org.junit.rules.TestRule