Skip to content
Snippets Groups Projects
Commit f8530bb8 authored by Jesper Zedlitz's avatar Jesper Zedlitz
Browse files

activated fixMediaType_alreadyCorrect Test

parent 83049dc7
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,7 @@ public class CatalogFilterTest { ...@@ -144,7 +144,7 @@ public class CatalogFilterTest {
* filtered results. * filtered results.
*/ */
@Test @Test
public void work_will_preseve_collections() throws Exception { public void work_will_preserve_collections() throws Exception {
try (final InputStream inputStream = getClass().getResourceAsStream("/with_collection.xml")) { try (final InputStream inputStream = getClass().getResourceAsStream("/with_collection.xml")) {
final Model model = catalogFilter.work(inputStream); final Model model = catalogFilter.work(inputStream);
...@@ -251,6 +251,7 @@ public class CatalogFilterTest { ...@@ -251,6 +251,7 @@ public class CatalogFilterTest {
assertEquals("https://www.iana.org/assignments/media-types/text/csv", mediaType.getURI()); assertEquals("https://www.iana.org/assignments/media-types/text/csv", mediaType.getURI());
} }
@Test
public void fixMediaType_alreadyCorrect() { public void fixMediaType_alreadyCorrect() {
final Model model = parseRdf(getClass().getResourceAsStream("/mediaType.xml")); final Model model = parseRdf(getClass().getResourceAsStream("/mediaType.xml"));
catalogFilter.fixMediaType(model); catalogFilter.fixMediaType(model);
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<dcatde:licenseAttributionByText>Statistisches Amt für Hamburg und Schleswig-Holstein - Anstalt des öffentlichen Rechts - (Statistikamt Nord)</dcatde:licenseAttributionByText> <dcatde:licenseAttributionByText>Statistisches Amt für Hamburg und Schleswig-Holstein - Anstalt des öffentlichen Rechts - (Statistikamt Nord)</dcatde:licenseAttributionByText>
<dcat:accessURL rdf:resource="https://www.statistik-nord.de/fileadmin/Dokumente/Statistische_Berichte/landwirtschaft/C_II_1_m_S/C_II_1_m0409_S.pdf"/> <dcat:accessURL rdf:resource="https://www.statistik-nord.de/fileadmin/Dokumente/Statistische_Berichte/landwirtschaft/C_II_1_m_S/C_II_1_m0409_S.pdf"/>
<dcat:downloadURL rdf:resource="http://example.org/file.csv"/> <dcat:downloadURL rdf:resource="http://example.org/file.csv"/>
<dcat:mediaType rdf:resource="">https://www.iana.org/assignments/media-types/text/csv</dcat:mediaType> <dcat:mediaType rdf:resource="https://www.iana.org/assignments/media-types/text/csv" />
<dcat:byteSize rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">112874985.0</dcat:byteSize> <dcat:byteSize rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">112874985.0</dcat:byteSize>
<dct:license rdf:resource="http://dcat-ap.de/def/licenses/dl-by-de/2.0"/> <dct:license rdf:resource="http://dcat-ap.de/def/licenses/dl-by-de/2.0"/>
<dct:format rdf:resource="http://publications.europa.eu/resource/authority/file-type/PDF"/> <dct:format rdf:resource="http://publications.europa.eu/resource/authority/file-type/PDF"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment