@@ -0,0 +1,1892 @@
+package seedu.address.ui;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertFalse;%0A%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.Label;%0Aimport seedu.address.model.task.TypicalFloatingTasks;%0Aimport seedu.address.testutil.GuiTests;%0A%0A@Category(%7BGuiTests.class%7D)%0Apublic class FloatingTaskListCardTest extends FxRobot %7B%0A%0A    private TypicalFloatingTasks tft = new TypicalFloatingTasks();%0A%0A    private FloatingTaskListCard floatingTaskListCard;%0A%0A    private Label indexLabel;%0A%0A    private Label nameLabel;%0A%0A    private Label priorityLabel;%0A%0A    @BeforeClass%0A    public static void setupFxToolkit() throws Exception %7B%0A        FxToolkit.registerPrimaryStage();%0A    %7D%0A%0A    private void setupNodes() throws Exception %7B%0A        FxToolkit.showStage();%0A        indexLabel = lookup(%22#indexLabel%22).query();%0A        nameLabel = lookup(%22#nameLabel%22).query();%0A        priorityLabel = lookup(%22#priorityLabel%22).query();%0A    %7D%0A%0A    @Test%0A    public void withFloatingTask_displaysInfoInLabels() throws Exception %7B%0A        FxToolkit.setupSceneRoot(() -%3E %7B%0A            floatingTaskListCard = new FloatingTaskListCard(tft.buyAHelicopter, 42);%0A            return floatingTaskListCard.getRoot();%0A        %7D);%0A        setupNodes();%0A        assertEquals(%2242. %22, indexLabel.getText());%0A        assertEquals(%22buy A Helicopter%22, nameLabel.getText());%0A        assertEquals(%224%22, priorityLabel.getText());%0A    %7D%0A%0A    @Test%0A    public void nullFloatingTask_becomesInvisible() throws Exception %7B%0A        FxToolkit.setupSceneRoot(() -%3E %7B%0A            floatingTaskListCard = new FloatingTaskListCard(null, 31);%0A            return floatingTaskListCard.getRoot();%0A        %7D);%0A        assertFalse(floatingTaskListCard.getRoot().isVisible());%0A    %7D%0A%0A%7D%0A

add FloatingTaskListCardTest