Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dcat-catalog-proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
dcat-catalog-proxy
Commits
f8530bb8
Commit
f8530bb8
authored
1 year ago
by
Jesper Zedlitz
Browse files
Options
Downloads
Patches
Plain Diff
activated fixMediaType_alreadyCorrect Test
parent
83049dc7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/java/de/landsh/opendata/catalogproxy/CatalogFilterTest.java
+2
-1
2 additions, 1 deletion
...va/de/landsh/opendata/catalogproxy/CatalogFilterTest.java
src/test/resources/mediaType.xml
+1
-1
1 addition, 1 deletion
src/test/resources/mediaType.xml
with
3 additions
and
2 deletions
src/test/java/de/landsh/opendata/catalogproxy/CatalogFilterTest.java
+
2
−
1
View file @
f8530bb8
...
...
@@ -144,7 +144,7 @@ public class CatalogFilterTest {
* filtered results.
*/
@Test
public
void
work_will_preseve_collections
()
throws
Exception
{
public
void
work_will_prese
r
ve_collections
()
throws
Exception
{
try
(
final
InputStream
inputStream
=
getClass
().
getResourceAsStream
(
"/with_collection.xml"
))
{
final
Model
model
=
catalogFilter
.
work
(
inputStream
);
...
...
@@ -251,6 +251,7 @@ public class CatalogFilterTest {
assertEquals
(
"https://www.iana.org/assignments/media-types/text/csv"
,
mediaType
.
getURI
());
}
@Test
public
void
fixMediaType_alreadyCorrect
()
{
final
Model
model
=
parseRdf
(
getClass
().
getResourceAsStream
(
"/mediaType.xml"
));
catalogFilter
.
fixMediaType
(
model
);
...
...
This diff is collapsed.
Click to expand it.
src/test/resources/mediaType.xml
+
1
−
1
View file @
f8530bb8
...
...
@@ -49,7 +49,7 @@
<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: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>
<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"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment