@@ -0,0 +1,2017 @@
+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.TypicalEventTasks;%0Aimport seedu.address.testutil.GuiTests;%0A%0A@Category(%7BGuiTests.class%7D)%0Apublic class EventTaskListCardTest extends FxRobot %7B%0A%0A    private TypicalEventTasks tet = new TypicalEventTasks();%0A%0A    private EventTaskListCard eventTaskListCard;%0A%0A    private Label indexLabel;%0A%0A    private Label nameLabel;%0A%0A    private Label startLabel;%0A%0A    private Label endLabel;%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        startLabel = lookup(%22#startLabel%22).query();%0A        endLabel = lookup(%22#endLabel%22).query();%0A    %7D%0A%0A    @Test%0A    public void withEventTask_showsInfoInLabels() throws Exception %7B%0A        FxToolkit.setupSceneRoot(() -%3E %7B%0A            eventTaskListCard = new EventTaskListCard(tet.lunchWithBillGates, 42);%0A            return eventTaskListCard.getRoot();%0A        %7D);%0A        setupNodes();%0A        assertEquals(%2242. %22, indexLabel.getText());%0A        assertEquals(%22Lunch with Bill Gates%22, nameLabel.getText());%0A        assertEquals(%221970-01-01T00:00%22, startLabel.getText());%0A        assertEquals(%221970-01-01T01:00%22, endLabel.getText());%0A    %7D%0A%0A    @Test%0A    public void nullEventTask_becomesInvisible() throws Exception %7B%0A        FxToolkit.setupSceneRoot(() -%3E %7B%0A            eventTaskListCard = new EventTaskListCard(null, 34);%0A            return eventTaskListCard.getRoot();%0A        %7D);%0A        setupNodes();%0A        assertFalse(eventTaskListCard.getRoot().isVisible());%0A    %7D%0A%0A%7D%0A

add EventTaskListCardTest