< prev index next >

test/javax/xml/jaxp/unittest/transform/Bug6384805.java

Print this page




  77 
  78                 public String getPrefix(String namespaceURI) {
  79                     return null;
  80                 }
  81 
  82                 public Iterator getPrefixes(String namespaceURI) {
  83                     return null;
  84                 }
  85             });
  86 
  87             // Find the value of the style:family attribute
  88             Object o1 = query.evaluate("/test/office:document/office:styles/style:default-style/@style:family", res.getNode(), XPathConstants.STRING);
  89 
  90             Assert.assertTrue(o1.equals("graphics"));
  91         } catch (Exception e) {
  92             Assert.fail(e.getMessage());
  93         }
  94     }
  95 
  96 }
  97 


  77 
  78                 public String getPrefix(String namespaceURI) {
  79                     return null;
  80                 }
  81 
  82                 public Iterator getPrefixes(String namespaceURI) {
  83                     return null;
  84                 }
  85             });
  86 
  87             // Find the value of the style:family attribute
  88             Object o1 = query.evaluate("/test/office:document/office:styles/style:default-style/@style:family", res.getNode(), XPathConstants.STRING);
  89 
  90             Assert.assertTrue(o1.equals("graphics"));
  91         } catch (Exception e) {
  92             Assert.fail(e.getMessage());
  93         }
  94     }
  95 
  96 }

< prev index next >