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:
      public static void setUpClass() throws Exception {
In JavaFX:
      public static void setUpClass() throws Exception {

Category:junit Category:dev

Copyright 2016 Dassault Aviation. All Rights Reserved. Documentation and source under the GPL v2 licence

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help