3063N/A * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 3063N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3063N/A * This code is free software; you can redistribute it and/or modify it 3063N/A * under the terms of the GNU General Public License version 2 only, as 3063N/A * published by the Free Software Foundation. 3063N/A * This code is distributed in the hope that it will be useful, but WITHOUT 3063N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3063N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3063N/A * version 2 for more details (a copy is included in the LICENSE file that 3063N/A * You should have received a copy of the GNU General Public License version 3063N/A * 2 along with this work; if not, write to the Free Software Foundation, 3063N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3063N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3063N/A * or visit www.oracle.com if you need additional information or have any 3063N/A * @summary Test that DescriptorSupport.toXMLString() can be used to 3063N/A * reconstruct an equivalent DescriptorSupport 3063N/A * @run clean DescriptorSupportXMLTest 3063N/A * @run build DescriptorSupportXMLTest 3063N/A * @run main DescriptorSupportXMLTest 3063N/A "can be used to reconstruct an equivalent " +
3063N/A // Values that should be encodable. 3063N/A "a description with several words",
3063N/A "magic&\"\\<> \r\t\n\f;&;magic",
3063N/A "<descriptor>&&&</descriptor>",
3063N/A "<descriptor>&&&</blahblahblah>",
3063N/A // Values that are not encodable: it is important that we throw 3063N/A // an exception during encoding rather than waiting until decode 3063N/A // time to discover the problem. These classes are not encodable 3063N/A // because they don't have a (String) constructor. 3063N/A "RuntimeOperationsException wrapping " +
3063N/A "an IllegalArgumentException: " +
3063N/A "RuntimeOperationException wrapping " +