< prev index next >

test/javax/xml/jaxp/functional/test/gaptest/Bug4693341.java

Print this page




  64         Transformer transformer = TransformerFactory.newInstance().newTransformer();
  65 
  66         String out = USER_DIR + "Bug4693341.out";
  67         StreamResult result = new StreamResult(new File(out));
  68 
  69         String in = XML_DIR + "Bug4693341.xml";
  70         String golden = GOLDEN_DIR + "Bug4693341.xml";
  71         File file = new File(in);
  72         StreamSource source = new StreamSource(file);
  73         System.out.println(source.getSystemId());
  74 
  75         Files.copy(Paths.get(XML_DIR + "Bug4693341.dtd"),
  76                 Paths.get(USER_DIR + "Bug4693341.dtd"), REPLACE_EXISTING);
  77 
  78         transformer.transform(source, result);
  79 
  80         assertTrue(compareDocumentWithGold(golden, out));
  81     }
  82 
  83 }
  84 


  64         Transformer transformer = TransformerFactory.newInstance().newTransformer();
  65 
  66         String out = USER_DIR + "Bug4693341.out";
  67         StreamResult result = new StreamResult(new File(out));
  68 
  69         String in = XML_DIR + "Bug4693341.xml";
  70         String golden = GOLDEN_DIR + "Bug4693341.xml";
  71         File file = new File(in);
  72         StreamSource source = new StreamSource(file);
  73         System.out.println(source.getSystemId());
  74 
  75         Files.copy(Paths.get(XML_DIR + "Bug4693341.dtd"),
  76                 Paths.get(USER_DIR + "Bug4693341.dtd"), REPLACE_EXISTING);
  77 
  78         transformer.transform(source, result);
  79 
  80         assertTrue(compareDocumentWithGold(golden, out));
  81     }
  82 
  83 }

< prev index next >