@@ -0,0 +1,1449 @@
+package com.easternedgerobotics.rov.fx;%0A%0Aimport com.easternedgerobotics.rov.test.JfxApplicationThreadRule;%0A%0Aimport javafx.scene.Parent;%0Aimport javafx.stage.Stage;%0Aimport org.junit.Assert;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0Aimport java.util.Collections;%0A%0Apublic class ViewLoaderTest %7B%0A    @Rule%0A    public JfxApplicationThreadRule jfxRule = new JfxApplicationThreadRule();%0A%0A    @Test%0A    public final void loadViewCreatesStage() %7B%0A        final ViewLoader viewLoader = new ViewLoader(Collections.emptyMap());%0A        final Stage stage = viewLoader.load(SliderView.class);%0A%0A        Assert.assertNotNull(%22Stage is null%22, stage);%0A        Assert.assertNotNull(%22Scene is null%22, stage.getScene());%0A    %7D%0A%0A    @Test%0A    public final void loadViewDoesSetStageEventHandler() %7B%0A        final ViewLoader viewLoader = new ViewLoader(Collections.emptyMap());%0A        final Stage stage = viewLoader.load(SliderView.class);%0A%0A        Assert.assertNotNull(%22EventHandler for window hide is not set%22, stage.getOnHidden());%0A        Assert.assertNotNull(%22EventHandler for window show is not set%22, stage.getOnShown());%0A    %7D%0A%0A    @Test%0A    public final void loadViewDoesSetSceneRootNode() %7B%0A        final ViewLoader viewLoader = new ViewLoader(Collections.emptyMap());%0A        final Stage stage = viewLoader.load(SliderView.class);%0A        final Parent view = stage.getScene().getRoot();%0A%0A        Assert.assertNotNull(%22Scene root node is null%22, view);%0A    %7D%0A%7D%0A

Add ViewLoaderTest