Home
Categories
Dictionary
Download
Project Details
Changes Log
Who We Are
FAQ
License

Unit Tests UI Framework specificities


Specific care must be performed if you want to tests the server or editor, depending on the UI framework you want to use for the test.

Test class setup declaration

The server and editor must know which UI framework is used. In real usage, this framework is created at start: But in Unit Tests, the framework must be specified prior to using the Server or the Editor. It can be performed by using the utility class arinc661.testutils.FrameworkManager in the Test class setup.

In Swing:
      @BeforeClass
      public static void setUpClass() throws Exception {
      FrameworkManager.setUpGraphicFramework();
      }
In JavaFX:
      @BeforeClass
      public static void setUpClass() throws Exception {
      FrameworkManager.setGraphicFramework(FrameworkManager.JAVAFX);
      }

Categories: dev | junit

Copyright 2016-2017 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v2 licence