Esempio n. 1
0
 /**
  * Test for XPath.setNamespaceContext(NamespaceContext nsContext) Establish a namespace context.
  * Set a valid nsContext and retrieve it using getNamespaceContext(), should return the same.
  */
 @Test
 public void testCheckXPath57() {
   MyNamespaceContext myNamespaceContext = new MyNamespaceContext();
   xpath.setNamespaceContext(myNamespaceContext);
   assertEquals(xpath.getNamespaceContext(), myNamespaceContext);
 }
Esempio n. 2
0
 /**
  * Test for XPath.getNamespaceContext() returns the current namespace context, null is returned if
  * no namespace context is in effect.
  */
 @Test
 public void testCheckXPath56() {
   // CR 6376058 says that an impl will be provided, but by
   // default we still return null here
   assertNull(xpath.getNamespaceContext());
 }