lift to module path, adjust tests
This commit is contained in:
parent
2805b97026
commit
4908e75a9e
4 changed files with 14 additions and 21 deletions
|
@ -19,6 +19,15 @@ public class XmlNamespaceContextTest {
|
||||||
@Test
|
@Test
|
||||||
public void testDefaultNamespaces() throws Exception {
|
public void testDefaultNamespaces() throws Exception {
|
||||||
XmlNamespaceContext context = XmlNamespaceContext.newInstance(getClass());
|
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);
|
XmlXParams params = new XmlXParams(context);
|
||||||
try (XContentBuilder builder = contentBuilder(params)) {
|
try (XContentBuilder builder = contentBuilder(params)) {
|
||||||
builder.startObject()
|
builder.startObject()
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
dc = http://purl.org/dc/elements/1.1/
|
||||||
|
dcterms = http://purl.org/dc/terms/
|
|
@ -1,21 +1 @@
|
||||||
# XML namespace
|
# empty
|
||||||
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/
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package org.xbib.settings.content.test;
|
package org.xbib.settings.content.test;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Disabled;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.xbib.content.core.XContentHelper;
|
import org.xbib.content.core.XContentHelper;
|
||||||
import org.xbib.content.io.BytesArray;
|
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());
|
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
|
@Test
|
||||||
public void testRefresher() throws Exception {
|
public void testRefresher() throws Exception {
|
||||||
Settings settings = Settings.settingsBuilder()
|
Settings settings = Settings.settingsBuilder()
|
||||||
|
|
Loading…
Reference in a new issue