lift to module path, adjust tests

This commit is contained in:
Jörg Prante 2024-04-08 16:16:35 +02:00
parent 2805b97026
commit 4908e75a9e
4 changed files with 14 additions and 21 deletions

View file

@ -19,6 +19,15 @@ public class XmlNamespaceContextTest {
@Test
public void testDefaultNamespaces() throws Exception {
XmlNamespaceContext context = XmlNamespaceContext.newInstance(getClass());
context.addNamespace("atom", "http://www.w3.org/2005/Atom");
context.addNamespace("dc", "http://purl.org/dc/elements/1.1/");
context.addNamespace("dcterms", "http://purl.org/dc/terms/");
context.addNamespace("foaf", "http://xmlns.com/foaf/0.1/");
context.addNamespace("owl", "http://www.w3.org/2002/07/owl#");
context.addNamespace("rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#");
context.addNamespace("rdfs", "http://www.w3.org/2000/01/rdf-schema#");
context.addNamespace("xalan", "http://xml.apache.org/xslt");
context.addNamespace("xsl", "http://www.w3.org/1999/XSL/Transform");
XmlXParams params = new XmlXParams(context);
try (XContentBuilder builder = contentBuilder(params)) {
builder.startObject()

View file

@ -0,0 +1,2 @@
dc = http://purl.org/dc/elements/1.1/
dcterms = http://purl.org/dc/terms/

View file

@ -1,21 +1 @@
# XML namespace
xml = http://www.w3.org/XML/1998/namespace
xsl = http://www.w3.org/1999/XSL/Transform
# Atom
atom = http://www.w3.org/2005/Atom
# RDF namespace
rdf = http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs = http://www.w3.org/2000/01/rdf-schema#
owl = http://www.w3.org/2002/07/owl#
foaf = http://xmlns.com/foaf/0.1/
# Apache
xalan = http://xml.apache.org/xslt
# Dublin Core Namespaces
# http://dublincore.org/documents/dcmi-namespace/
dc = http://purl.org/dc/elements/1.1/
dcterms = http://purl.org/dc/terms/
# empty

View file

@ -1,5 +1,6 @@
package org.xbib.settings.content.test;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.xbib.content.core.XContentHelper;
import org.xbib.content.io.BytesArray;
@ -199,6 +200,7 @@ public class SettingsTest {
assertEquals("{code.a=b, code.b=c, name.a=b, name.b=c, list.0=a, list.1=b, null=null}", result.toString());
}
@Disabled("no refresh supported")
@Test
public void testRefresher() throws Exception {
Settings settings = Settings.settingsBuilder()