--- /dev/null
+/*
+ * (C) 2015 EDF
+ */
+package com.edf.gde.test.dao;
+
+import com.edf.gde.base.BaseTest;
+import com.edf.gde.dao.FileDaoClient;
+import com.edf.gde.transferables.FileTO;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+import org.junit.Test;
+
+/**
+ *
+ * @author Kavoos
+ */
+public class FileDaoTest extends BaseTest {
+ @BeforeClass
+ public static void setUpClass() {
+ }
+
+ @AfterClass
+ public static void tearDownClass() {
+ }
+
+ @Before
+ public void setUp() {
+ }
+
+ @After
+ public void tearDown() {
+ }
+
+ @Test
+ public void createFileTest() throws Exception {
+ testName("createFile");
+ FileDaoClient fileDaoClient = new FileDaoClient();
+ FileTO fileTO = new FileTO();
+ fileTO.setName("/home/kavoos/test.txt");
+ FileTO createdFile = fileDaoClient.createFile(fileTO);
+ assertNotNull(createdFile);
+ assertTrue(createdFile.getId() != 0);
+ assertEquals("/home/kavoos/test.txt", createdFile.getName());
+ passed();
+ }
+}