Fixed test used for GRSF
This commit is contained in:
parent
531aa00e40
commit
5ae8b98b2c
2
pom.xml
2
pom.xml
|
@ -12,7 +12,7 @@
|
|||
<groupId>org.gcube.data-catalogue</groupId>
|
||||
<artifactId>gcat</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>2.4.0</version>
|
||||
<version>2.4.1-SNAPSHOT</version>
|
||||
<name>gCube Catalogue (gCat) Service</name>
|
||||
<description>
|
||||
This service allows any client to publish on the gCube Catalogue.
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue