|
|
|
@ -138,7 +138,7 @@ public class GRSFUtilities extends ContextTest {
|
|
|
|
|
public void testGroupName() {
|
|
|
|
|
String[] groupNames = new String[] {
|
|
|
|
|
"GRSF", "Legacy", "Fishery", "Stock", "FIRMS", "FishSource", "RAM",
|
|
|
|
|
"Catch", "Landing",
|
|
|
|
|
"Catch", "Landing", "Assessment Method",
|
|
|
|
|
"Abundance Level", "Abundance Level (FIRMS Standard)", "Biomass",
|
|
|
|
|
"Fishing Pressure", "Fishing Pressure (FIRMS Standard)", "State and Trend",
|
|
|
|
|
"FAO Stock Status Category", "Scientific Advice",
|
|
|
|
@ -154,17 +154,18 @@ public class GRSFUtilities extends ContextTest {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Test
|
|
|
|
|
@Test
|
|
|
|
|
public void createNewGRSFGroups() throws ObjectNotFound, Exception {
|
|
|
|
|
String sysAdminAPI = CKANUtility.getSysAdminAPI();
|
|
|
|
|
String[] groupNames = new String[] {
|
|
|
|
|
"GRSF", "Legacy", "Fishery", "Stock", "FIRMS", "FishSource", "RAM",
|
|
|
|
|
"Catch", "Landing",
|
|
|
|
|
"Catch", "Landing", "Assessment Method",
|
|
|
|
|
"Abundance Level", "Abundance Level (FIRMS Standard)", "Biomass",
|
|
|
|
|
"Fishing Pressure", "Fishing Pressure (FIRMS Standard)", "State and Trend",
|
|
|
|
|
"FAO Stock Status Category", "Scientific Advice",
|
|
|
|
|
"GRSF SDG Flag", "GRSF Traceability Flag"
|
|
|
|
|
};
|
|
|
|
|
groupNames = new String[] {"Assessment Method"};
|
|
|
|
|
ObjectMapper objectMapper = new ObjectMapper();
|
|
|
|
|
for(String name : groupNames) {
|
|
|
|
|
CKANGroup ckanGroupToCreate = new CKANGroup();
|
|
|
|
|