@@ -0,0 +1,831 @@
+package jfdi.test.logic.commands;%0A%0Aimport jfdi.logic.commands.DirectoryCommand;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0A%0Aimport static org.junit.Assert.*;%0Aimport static org.mockito.Mockito.*;%0A%0A/**%0A * @author Liu Xinan%0A */%0Apublic class DirectoryCommandTest extends CommonCommandTest %7B%0A%0A    @Rule%0A    public ExpectedException thrown = ExpectedException.none();%0A%0A    @Test%0A    public void execute() throws Exception %7B%0A        DirectoryCommand command = new DirectoryCommand.Builder().build();%0A%0A        command.execute();%0A%0A        verify(mainStorage).getCurrentDirectory();%0A    %7D%0A%0A    @Test%0A    public void undo() throws Exception %7B%0A        DirectoryCommand command = new DirectoryCommand.Builder().build();%0A%0A        thrown.expect(AssertionError.class);%0A        command.undo();%0A    %7D%0A%0A%7D%0A

Add test for `DirectoryCommand`