@@ -0,0 +1,1909 @@
+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.TypicalDeadlineTasks;%0Aimport seedu.address.testutil.GuiTests;%0A%0A@Category(%7BGuiTests.class%7D)%0Apublic class DeadlineTaskListCardTest extends FxRobot %7B%0A%0A    private TypicalDeadlineTasks tdt = new TypicalDeadlineTasks();%0A%0A    private DeadlineTaskListCard deadlineTaskListCard;%0A%0A    private Label indexLabel;%0A%0A    private Label nameLabel;%0A%0A    private Label dueLabel;%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        dueLabel = lookup(%22#dueLabel%22).query();%0A    %7D%0A%0A    @Test%0A    public void withDeadlineTask_showsInfoInLabels() throws Exception %7B%0A        FxToolkit.setupSceneRoot(() -%3E %7B%0A            deadlineTaskListCard = new DeadlineTaskListCard(tdt.speechTranscript, 42);%0A            return deadlineTaskListCard.getRoot();%0A        %7D);%0A        setupNodes();%0A        assertEquals(%2242. %22, indexLabel.getText());%0A        assertEquals(%22Speech Transcript%22, nameLabel.getText());%0A        assertEquals(%221970-01-01T01:00%22, dueLabel.getText());%0A    %7D%0A%0A    @Test%0A    public void nullDeadlineTask_becomesInvisible() throws Exception %7B%0A        FxToolkit.setupSceneRoot(() -%3E %7B%0A            deadlineTaskListCard = new DeadlineTaskListCard(null, 34);%0A            return deadlineTaskListCard.getRoot();%0A        %7D);%0A        setupNodes();%0A        assertFalse(deadlineTaskListCard.getRoot().isVisible());%0A    %7D%0A%0A%7D%0A

add DeadlineTaskListCardTest