Loading src/test/java/es/redmic/test/unit/jsonschema/JsonSchemaGenerationTest.java +5 −4 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ package es.redmic.test.unit.jsonschema; */ import java.io.IOException; import java.nio.charset.Charset; import java.util.HashMap; import org.apache.commons.io.IOUtils; Loading Loading @@ -91,7 +92,7 @@ public class JsonSchemaGenerationTest { public void simpleJsonschemaGenerate() throws JSONException, IOException { String result = jsonSchemaUtil.generateJsonSchema(ActivityDTO.class), expected = IOUtils.toString(getClass().getResource(jsonschemaPath).openStream()); expected = IOUtils.toString(getClass().getResource(jsonschemaPath).openStream(), Charset.forName("UTF8")); JSONAssert.assertEquals(result, expected, true); } Loading @@ -99,7 +100,7 @@ public class JsonSchemaGenerationTest { public void geoJsonschemaGenerate() throws JSONException, IOException { String result = jsonSchemaUtil.generateJsonSchema(CitationDTO.class), expected = IOUtils.toString(getClass().getResource(geoJsonschemaPath).openStream()); expected = IOUtils.toString(getClass().getResource(geoJsonschemaPath).openStream(), Charset.forName("UTF8")); JSONAssert.assertEquals(result, expected, true); } } src/test/resources/data/jsonschema/activityJsonschema.json +13 −13 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ "maxLength": 500 }, "parent": { "type": "integer", "type": "string", "url": "/operator/projects/" }, "code": { Loading Loading @@ -51,18 +51,18 @@ } }, "accessibility": { "type": "integer", "type": "string", "url": "/operator/accessibilities/" }, "scope": { "type": [ "integer", "string", "null" ], "url": "/operator/scopes/" }, "activityType": { "type": "integer", "type": "string", "url": "/operator/activitytypes" }, "startDate": { Loading Loading @@ -171,7 +171,7 @@ ] }, "document": { "type": "integer", "type": "string", "url": "/operator/documents/" } }, Loading @@ -189,15 +189,15 @@ ] }, "platform": { "type": "integer", "type": "string", "url": "/operator/platforms/" }, "contact": { "type": "integer", "type": "string", "url": "/operator/contacts/" }, "role": { "type": "integer", "type": "string", "url": "/operator/contactroles/" }, "endDate": { Loading Loading @@ -231,15 +231,15 @@ ] }, "contact": { "type": "integer", "type": "string", "url": "/operator/contacts/" }, "organisation": { "type": "integer", "type": "string", "url": "/operator/organisations/" }, "role": { "type": "integer", "type": "string", "url": "/operator/contactroles/" }, "endDate": { Loading Loading @@ -273,11 +273,11 @@ ] }, "organisation": { "type": "integer", "type": "string", "url": "/operator/organisations/" }, "role": { "type": "integer", "type": "string", "url": "/operator/organisationroles/" }, "endDate": { Loading src/test/resources/data/jsonschema/geoJsonschema.json +5 −5 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ }, "confidence": { "default": "1", "type": "integer", "type": "string", "url": "/operator/confidences" }, "radius": { Loading @@ -87,16 +87,16 @@ }, "speciesConfidence": { "default": "1", "type": "integer", "type": "string", "url": "/operator/confidences" }, "taxon": { "type": "integer", "type": "string", "url": "/operator/taxons/species" }, "misidentification": { "type": [ "integer", "string", "null" ], "url": "/operator/taxons/misidentification" Loading src/test/java/es/redmic/test/integration/utils/sitemap/GenerateSitemapTest.java +2 −2 File changed.Contains only whitespace changes. Show changes Loading
src/test/java/es/redmic/test/unit/jsonschema/JsonSchemaGenerationTest.java +5 −4 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ package es.redmic.test.unit.jsonschema; */ import java.io.IOException; import java.nio.charset.Charset; import java.util.HashMap; import org.apache.commons.io.IOUtils; Loading Loading @@ -91,7 +92,7 @@ public class JsonSchemaGenerationTest { public void simpleJsonschemaGenerate() throws JSONException, IOException { String result = jsonSchemaUtil.generateJsonSchema(ActivityDTO.class), expected = IOUtils.toString(getClass().getResource(jsonschemaPath).openStream()); expected = IOUtils.toString(getClass().getResource(jsonschemaPath).openStream(), Charset.forName("UTF8")); JSONAssert.assertEquals(result, expected, true); } Loading @@ -99,7 +100,7 @@ public class JsonSchemaGenerationTest { public void geoJsonschemaGenerate() throws JSONException, IOException { String result = jsonSchemaUtil.generateJsonSchema(CitationDTO.class), expected = IOUtils.toString(getClass().getResource(geoJsonschemaPath).openStream()); expected = IOUtils.toString(getClass().getResource(geoJsonschemaPath).openStream(), Charset.forName("UTF8")); JSONAssert.assertEquals(result, expected, true); } }
src/test/resources/data/jsonschema/activityJsonschema.json +13 −13 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ "maxLength": 500 }, "parent": { "type": "integer", "type": "string", "url": "/operator/projects/" }, "code": { Loading Loading @@ -51,18 +51,18 @@ } }, "accessibility": { "type": "integer", "type": "string", "url": "/operator/accessibilities/" }, "scope": { "type": [ "integer", "string", "null" ], "url": "/operator/scopes/" }, "activityType": { "type": "integer", "type": "string", "url": "/operator/activitytypes" }, "startDate": { Loading Loading @@ -171,7 +171,7 @@ ] }, "document": { "type": "integer", "type": "string", "url": "/operator/documents/" } }, Loading @@ -189,15 +189,15 @@ ] }, "platform": { "type": "integer", "type": "string", "url": "/operator/platforms/" }, "contact": { "type": "integer", "type": "string", "url": "/operator/contacts/" }, "role": { "type": "integer", "type": "string", "url": "/operator/contactroles/" }, "endDate": { Loading Loading @@ -231,15 +231,15 @@ ] }, "contact": { "type": "integer", "type": "string", "url": "/operator/contacts/" }, "organisation": { "type": "integer", "type": "string", "url": "/operator/organisations/" }, "role": { "type": "integer", "type": "string", "url": "/operator/contactroles/" }, "endDate": { Loading Loading @@ -273,11 +273,11 @@ ] }, "organisation": { "type": "integer", "type": "string", "url": "/operator/organisations/" }, "role": { "type": "integer", "type": "string", "url": "/operator/organisationroles/" }, "endDate": { Loading
src/test/resources/data/jsonschema/geoJsonschema.json +5 −5 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ }, "confidence": { "default": "1", "type": "integer", "type": "string", "url": "/operator/confidences" }, "radius": { Loading @@ -87,16 +87,16 @@ }, "speciesConfidence": { "default": "1", "type": "integer", "type": "string", "url": "/operator/confidences" }, "taxon": { "type": "integer", "type": "string", "url": "/operator/taxons/species" }, "misidentification": { "type": [ "integer", "string", "null" ], "url": "/operator/taxons/misidentification" Loading
src/test/java/es/redmic/test/integration/utils/sitemap/GenerateSitemapTest.java +2 −2 File changed.Contains only whitespace changes. Show changes