package edu.chl.proton.model;

import org.junit.Test;

import static org.junit.Assert.assertTrue;


/**
 * @author Stina Werme
 * Created by stinawerme on 11/05/17.
 */
public class FolderTest {

    @Test
    public void removeFolderTest() {

        Folder parent = new Folder("parent");
        Folder child = new Folder("child", parent);

        parent.removeFolder(child);
        System.out.print(child.getParentFolder());

        assertTrue("Instance of Folder should not be null", child != null);
    }

    @Test
    public void removeFileTest() {

        File file = new File("file");
        Folder folder = new Folder("folder");
    }
}
@@ -372,24 +372,25 @@
 child);%0A
+%0A
         
 System.o
@@ -385,52 +385,76 @@
     
-System.out.print(child.getParentFolder()
+assertTrue(%22The folder parent should not be null%22, parent != null
 );%0A
-%0A
     
@@ -473,26 +473,24 @@
 ue(%22
-Instance of Folder
+The folder child
  sho
@@ -519,24 +519,108 @@
 d != null);%0A
+        assertTrue(%22ParentFolder should be null%22, child.getParentFolder() == null);%0A
     %7D%0A%0A    @
@@ -743,16 +743,286 @@
 older%22);
+%0A%0A        folder.removeFile(file);%0A%0A        assertTrue(%22The file file should not be null%22, file != null);%0A        assertTrue(%22The folder folder should not be null%22, folder != null);%0A        assertTrue(%22ParentFolder should be null%22, file.getParentFolder() == null);%0A    %7D
 %0A    %7D%0A%7D

Add test for removeFile and removeFolder