@@ -0,0 +1,1966 @@
+package seedu.address.ui;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.junit.experimental.categories.Category;%0Aimport org.testfx.api.FxRobot;%0Aimport org.testfx.api.FxToolkit;%0A%0Aimport javafx.scene.control.ListView;%0Aimport seedu.address.model.IndexedItem;%0Aimport seedu.address.model.ModelManager;%0Aimport seedu.address.model.TaskBookBuilder;%0Aimport seedu.address.model.config.Config;%0Aimport seedu.address.model.task.FloatingTask;%0Aimport seedu.address.testutil.GuiTests;%0A%0A@Category(%7BGuiTests.class%7D)%0Apublic class FloatingTaskListPaneTest extends FxRobot %7B%0A%0A    private final ModelManager model = new ModelManager(new Config(),%0A                                                        new TaskBookBuilder().addTypicalFloatingTasks().build());%0A%0A    private FloatingTaskListPane pane;%0A%0A    private ListView%3CIndexedItem%3CFloatingTask%3E%3E listView;%0A%0A    @BeforeClass%0A    public static void setupFxToolkit() throws Exception %7B%0A        FxToolkit.registerPrimaryStage();%0A    %7D%0A%0A    @Before%0A    public void setup() throws Exception %7B%0A        FxToolkit.setupSceneRoot(() -%3E %7B%0A            pane = new FloatingTaskListPane(model.getFloatingTaskList());%0A            return pane.getRoot();%0A        %7D);%0A        FxToolkit.showStage();%0A        listView = lookup(%22.list-view%22).query();%0A    %7D%0A%0A    @After%0A    public void teardown() throws Exception %7B%0A        FxToolkit.cleanupStages();%0A    %7D%0A%0A    @Test%0A    public void select_selectsCorrectIndex() %7B%0A        interact(() -%3E pane.select(2));%0A        assertEquals(1, listView.getSelectionModel().getSelectedIndex());%0A    %7D%0A%0A    @Test%0A    public void clearSelect() %7B%0A        interact(() -%3E listView.getSelectionModel().select(0));%0A        assertEquals(0, listView.getSelectionModel().getSelectedIndex());%0A        interact(() -%3E pane.clearSelect());%0A        assertEquals(-1, listView.getSelectionModel().getSelectedIndex());%0A    %7D%0A%0A%7D%0A

Add FloatingTaskListPaneTest