From 187730a87e370242c0575fdb1157cce8b666d018 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Tue, 11 Oct 2016 10:00:23 +0000 Subject: [PATCH] added junit test git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@133039 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../ckanutillibrary/TestDataCatalogueLib.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/gcube/datacatalogue/ckanutillibrary/TestDataCatalogueLib.java b/src/test/java/org/gcube/datacatalogue/ckanutillibrary/TestDataCatalogueLib.java index 3761486..2f92d3c 100644 --- a/src/test/java/org/gcube/datacatalogue/ckanutillibrary/TestDataCatalogueLib.java +++ b/src/test/java/org/gcube/datacatalogue/ckanutillibrary/TestDataCatalogueLib.java @@ -13,7 +13,6 @@ import org.gcube.datacatalogue.ckanutillibrary.models.CkanDatasetRelationship; import org.gcube.datacatalogue.ckanutillibrary.models.DatasetRelationships; import org.gcube.datacatalogue.ckanutillibrary.models.RolesCkanGroupOrOrg; import org.gcube.datacatalogue.ckanutillibrary.utils.UtilMethods; -import org.junit.Before; import org.slf4j.LoggerFactory; import eu.trentorise.opendata.jackan.CheckedCkanClient; @@ -34,7 +33,7 @@ public class TestDataCatalogueLib { String subjectId = "aa_father4"; String objectId = "bb_son4"; - @Before + //@Before public void before(){ factory = DataCatalogueFactory.getFactory(); } @@ -302,15 +301,15 @@ public class TestDataCatalogueLib { // } // } } - + //@Test public void testGroupAssociation() throws Exception{ - + DataCatalogueImpl instance = factory.getUtilsPerScope(scope); String datasetId = "test_grsf_group_stock_groups_sadsad"; String groupName = "assessment-unit"; instance.assignDatasetToGroup(groupName, datasetId, instance.getApiKeyFromUsername("costantino_perciante")); - + } }