Commit eca5a0ce authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

Restored tests in NodeDAOTest

parent c70a0620
Pipeline #1824 passed with stages
in 1 minute and 31 seconds
......@@ -41,7 +41,7 @@ public class NodeDAOTest {
dao = new NodeDAO(dataSource);
}
//@Test
@Test
public void testCreateNode() {
DataNode dataNode = new DataNode();
......@@ -58,7 +58,7 @@ public class NodeDAOTest {
assertEquals(retrievedNode.getProvides().get(0).getUri(), dataNode.getProvides().get(0).getUri());
}
//@Test
@Test
public void testListNode() {
ContainerNode root = (ContainerNode) dao.listNode("/").get();
assertEquals(2, root.getNodes().size());
......@@ -153,7 +153,7 @@ public class NodeDAOTest {
}
//@Test
@Test
public void testCountNodeWithPath() {
assertEquals(1, dao.countNodesWithPath("/"));
assertEquals(1, dao.countNodesWithPath("/test1"), "Test db has been changed");
......@@ -169,7 +169,7 @@ public class NodeDAOTest {
assertEquals(0, dao.countNodesWithPath("/pippooo"), "Test db has been changed");
}
//@Test
@Test
public void testDeleteNode() {
assertEquals(1, dao.countNodesWithPath("/test1/f1/f2_renamed/f3"), "Test db has been changed");
......@@ -182,7 +182,7 @@ public class NodeDAOTest {
}
//@Test
@Test
public void testSetNodeLocation() {
DataNode dataNode = new DataNode();
......@@ -192,7 +192,7 @@ public class NodeDAOTest {
dao.setNodeLocation("/mydata2", 1, "mydata2");
}
//@Test
@Test
public void testSetNodeLocationFailure() {
boolean exception = false;
try {
......@@ -203,7 +203,7 @@ public class NodeDAOTest {
assertTrue(exception);
}
//@Test
@Test
public void testSetNode() {
Property publicReadProperty = getProperty(NodeProperties.PUBLIC_READ_URI, String.valueOf(false));
......@@ -226,7 +226,7 @@ public class NodeDAOTest {
assertEquals("true", NodeProperties.getNodePropertyByURI(node, NodeProperties.PUBLIC_READ_URI));
}
//@Test
@Test
public void testSetNodeRecursiveGroup() {
Property parentGroupRead = getProperty(NodeProperties.GROUP_READ_URI, "group1 group2");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment