ExportSubtree.java revision 5853
2362N/A * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 1568N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1568N/A * This code is free software; you can redistribute it and/or modify it 1568N/A * under the terms of the GNU General Public License version 2 only, as 1568N/A * published by the Free Software Foundation. 1568N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1568N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1568N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1568N/A * version 2 for more details (a copy is included in the LICENSE file that 1568N/A * You should have received a copy of the GNU General Public License version 1568N/A * 2 along with this work; if not, write to the Free Software Foundation, 1568N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 5853N/A * @bug 6203576 4700020 7197662 5853N/A * @summary checks if the output of exportSubtree() is identical to 5853N/A * the output from previous release. 1568N/A //System.out.print(baos.toString()); 1568N/A //System.out.print(expectedResult); 1568N/A "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" 1568N/A +
"<preferences EXTERNAL_XML_VERSION=\"1.0\">" 1568N/A +
" <entry key=\"key1\" value=\"value1\"/>" 1568N/A +
" <node name=\"testExportSubtree\">" 1568N/A +
" <entry key=\"key2\" value=\"value2\"/>" 1568N/A +
" <entry key=\"key3\" value=\"value3\"/>" 1568N/A "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" 1568N/A +
ls +
"<preferences EXTERNAL_XML_VERSION=\"1.0\">" 1568N/A +
ls +
" <node name=\"testExportSubtree\">" 1568N/A +
ls +
" <entry key=\"key2\" value=\"value2\"/>" 1568N/A +
ls +
" <entry key=\"key3\" value=\"value3\"/>"