Added resolver tests
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225980 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
05e24ba410
commit
526e262afd
2
java/tests/resolver/catalogs/catalog.sub1
Normal file
2
java/tests/resolver/catalogs/catalog.sub1
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
PUBLIC "-//Apache//DTD Resolver Test V1.0//EN"
|
||||||
|
"../dtds/restest.dtd"
|
||||||
2
java/tests/resolver/catalogs/catalog.sub2
Normal file
2
java/tests/resolver/catalogs/catalog.sub2
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
PUBLIC "-//Apache//ENTITIES Resolver Test Module V1.0//EN"
|
||||||
|
"../dtds/res1.mod"
|
||||||
4
java/tests/resolver/catalogs/main.catalog
Normal file
4
java/tests/resolver/catalogs/main.catalog
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
CATALOG catalog.sub1
|
||||||
|
CATALOG catalog.sub2
|
||||||
|
BASE ".."
|
||||||
|
CATALOG foo
|
||||||
2
java/tests/resolver/dtds/res1.mod
Normal file
2
java/tests/resolver/dtds/res1.mod
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<!ELEMENT foo EMPTY>
|
||||||
|
<!ELEMENT bar EMPTY>
|
||||||
7
java/tests/resolver/dtds/restest.dtd
Normal file
7
java/tests/resolver/dtds/restest.dtd
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<!ELEMENT test (foo|bar)+>
|
||||||
|
|
||||||
|
<!ENTITY % mod PUBLIC "-//Apache//ENTITIES Resolver Test Module V1.0//EN"
|
||||||
|
"http://example.com/does-not-exist">
|
||||||
|
|
||||||
|
%mod;
|
||||||
|
|
||||||
5
java/tests/resolver/test1.xml
Normal file
5
java/tests/resolver/test1.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<!DOCTYPE test PUBLIC "-//Apache//DTD Resolver Test V1.0//EN"
|
||||||
|
"http://example.com/does-not-exist">
|
||||||
|
<test>
|
||||||
|
<foo/>
|
||||||
|
</test>
|
||||||
Loading…
x
Reference in New Issue
Block a user