package model;

import org.junit.Test;

import static org.junit.Assert.*;

public class TitanDSMTest {

    @Test
    public void testGetSize() throws Exception {

    }

    @Test
    public void testGetData() throws Exception {

    }

    @Test
    public void testSetData() throws Exception {

    }

    @Test
    public void testDeleteData() throws Exception {

    }

    @Test
    public void testGetName() throws Exception {

    }

    @Test
    public void testSetName() throws Exception {

    }

    @Test
    public void testIsExist() throws Exception {

    }

    @Test
    public void testAddEntity() throws Exception {

    }

    @Test
    public void testLoadFromFile() throws Exception {

    }

    @Test
    public void testSaveToFile() throws Exception {

    }
}
@@ -20,22 +20,67 @@
 ort 
-org.junit.Test
+model.TitanDSM;%0Aimport org.junit.Test;%0A%0Aimport java.io.File
 ;%0A%0Ai
@@ -205,628 +205,1642 @@
 n %7B%0A
-%0A    %7D%0A%0A    @Test%0A    public void testGetData() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testSetData() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testDeleteData() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testGetName() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testSetName() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testIsExist() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testAddEntity() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testLoadFromFile() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testSaveToFile() throws Exception %7B%0A
+        TitanDSM dsm = new TitanDSM(30);%0A        assertEquals(30,dsm.getSize());%0A    %7D%0A%0A    @Test%0A    public void testGetData() throws Exception %7B%0A        TitanDSM dsm = new TitanDSM(30);%0A        assertEquals(false, dsm.getData(%22entity_1%22,%22entity_2%22));%0A    %7D%0A%0A    @Test%0A    public void testSetData() throws Exception %7B%0A        TitanDSM dsm = new TitanDSM(30);%0A        dsm.setData(true,%22entity_1%22,%22entity_2%22);%0A        assertEquals(true, dsm.getData(%22entity_1%22,%22entity_2%22));%0A    %7D%0A%0A    @Test%0A    public void testDeleteData() throws Exception %7B%0A        TitanDSM dsm = new TitanDSM(30);%0A        dsm.deleteData(%22entity_1%22);%0A        assertEquals(29,dsm.getSize());%0A    %7D%0A%0A    @Test%0A    public void testGetName() throws Exception %7B%0A        TitanDSM dsm = new TitanDSM(30);%0A        assertEquals(%22entity_1%22,dsm.getName(0));%0A        assertEquals(%22entity%22,dsm.getName(0));%0A    %7D%0A%0A    @Test%0A    public void testSetName() throws Exception %7B%0A        TitanDSM dsm = new TitanDSM(30);%0A        dsm.setName(%22NewName%22,%22entity_1%22);%0A        assertEquals(%22NewName%22,dsm.getName(0));%0A    %7D%0A%0A    @Test%0A    public void testIsExist() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testAddEntity() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testLoadFromFile() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testSaveToFile() throws Exception %7B%0A        TitanDSM dsm = new TitanDSM(30);%0A        File file = new File(%22a%22);%0A        dsm.setData(true,%22entity_1%22,%22entity_2%22);%0A        dsm.saveToFile(file);%0A        TitanDSM dsm2 = new TitanDSM(file);%0A        assertEquals(dsm.getData(%22entity_1%22,%22entity_2%22),dsm2.getData(%22entity_1%22,%22entity_2%22));
 %0A    %7D%0A
+%0A
 %7D

implement UnitTest Method