Skip to content

Commit db31f2e

Browse files
committed
Add entity resolver test
1 parent c4666a3 commit db31f2e

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.formulasearchengine.mathmltools.xmlhelper;
2+
3+
import org.junit.Assert;
4+
import org.junit.Test;
5+
6+
/**
7+
* Created by Moritz on 18.03.2017.
8+
*/
9+
public class PartialLocalEntityResolverTest {
10+
@Test
11+
public void resolveEntity() throws Exception {
12+
13+
final PartialLocalEntityResolver resolver = new PartialLocalEntityResolver();
14+
Assert.assertNull(resolver.resolveEntity("a", "b"));
15+
Assert.assertNotNull(resolver.resolveEntity("a", "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"));
16+
}
17+
18+
}

0 commit comments

Comments
 (0)