From 3858b54b0dbc432ee5848f56a7baf87f406f6639 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Fri, 28 Jul 2023 13:18:23 +0100 Subject: Implement 'Rollback nested transaction' Signed-off-by: MichaelMorris Issue-ID: SDC-4585 Change-Id: I37c98e4f51f40e8d89c110e134499f3cf49181bd --- .../sdc/be/resources/JanusGraphGenericDaoTest.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'catalog-dao/src/test/java') diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/JanusGraphGenericDaoTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/JanusGraphGenericDaoTest.java index 549841c6cb..586ff9ecca 100644 --- a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/JanusGraphGenericDaoTest.java +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/JanusGraphGenericDaoTest.java @@ -93,7 +93,7 @@ public class JanusGraphGenericDaoTest { } @Test - public void testcheckEdgeProps() { + void testcheckEdgeProps() { JanusGraph graph = janusGraphDao.getGraph().left().value(); JanusGraphVertex v1 = graph.addVertex(); v1.property("prop1", 123); @@ -113,7 +113,7 @@ public class JanusGraphGenericDaoTest { } @Test - public void testCrudNode() { + void testCrudNode() { String id = "userId12345abc"; UserData userData = new UserData("Myname123", "Mylastname", id, "email123", "Tester", @@ -153,7 +153,7 @@ public class JanusGraphGenericDaoTest { } @Test - public void testGetByCategoryAndAll() { + void testGetByCategoryAndAll() { // create 2 nodes String id = "userId12345abc"; @@ -208,7 +208,7 @@ public class JanusGraphGenericDaoTest { } @Test - public void testGetEdgesForNode() { + void testGetEdgesForNode() { String id = "userId12345abc"; UserData userData = new UserData("Myname123", "Mylastname", id, "email123", UserRoleEnum.ADMIN.name(), UserStatusEnum.ACTIVE.name(), null); @@ -254,7 +254,7 @@ public class JanusGraphGenericDaoTest { } @Test - public void testLockElement() { + void testLockElement() { ResourceMetadataData resourceData = new ResourceMetadataData(); @@ -299,7 +299,7 @@ public class JanusGraphGenericDaoTest { } @Test - public void testReLockElement() throws InterruptedException { + void testReLockElement() throws InterruptedException { ResourceMetadataData resourceData = new ResourceMetadataData(); @@ -360,7 +360,7 @@ public class JanusGraphGenericDaoTest { } @Test - public void testBoolean() { + void testBoolean() { ResourceMetadataData resourceData = new ResourceMetadataData(); resourceData.getMetadataDataDefinition().setName("resourceForLock"); @@ -405,7 +405,7 @@ public class JanusGraphGenericDaoTest { } @Test - public void testStringSearch() { + void testStringSearch() { JanusGraph graph; BaseConfiguration conf = new BaseConfiguration(); @@ -434,7 +434,7 @@ public class JanusGraphGenericDaoTest { } @Test - public void testDuplicateResultDueToJanusGraphBug() { + void testDuplicateResultDueToJanusGraphBug() { ResourceMetadataData resourceData1 = new ResourceMetadataData(); resourceData1.getMetadataDataDefinition().setUniqueId("A"); @@ -576,7 +576,7 @@ public class JanusGraphGenericDaoTest { } @Test - public void testDuplicateResultUSeHasNotQueryDueToJanusGraphBug() { + void testDuplicateResultUSeHasNotQueryDueToJanusGraphBug() { String name = "bbbb"; -- cgit 1.2.3-korg