QuerySubstringTest.java revision 0
0N/A * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 0N/A * CA 95054 USA or visit www.sun.com if you need additional information or 0N/A * have any questions. 0N/A * @summary Query.{initial,any,final}SubString fail if the 0N/A * matching constraint string contains wildcards. 0N/A * @author Luis-Miguel Alventosa 0N/A * @run clean QuerySubstringTest 0N/A * @run build QuerySubstringTest 0N/A * @run main QuerySubstringTest 0N/A {
"a*b?c\\d[e-f]",
"OK",
"OK",
"OK" },
0N/A {
"a*b?c\\d[e-f]g",
"OK",
"OK",
"KO" },
0N/A {
"za*b?c\\d[e-f]",
"KO",
"OK",
"OK" },
0N/A {
"za*b?c\\d[e-f]g",
"KO",
"OK",
"KO" },
0N/A {
"a*b?c\\de",
"KO",
"KO",
"KO" },
0N/A {
"a*b?c\\deg",
"KO",
"KO",
"KO" },
0N/A {
"za*b?c\\de",
"KO",
"KO",
"KO" },
0N/A {
"za*b?c\\deg",
"KO",
"KO",
"KO" },
0N/A {
"a*b?c\\df",
"KO",
"KO",
"KO" },
0N/A {
"a*b?c\\dfg",
"KO",
"KO",
"KO" },
0N/A {
"za*b?c\\df",
"KO",
"KO",
"KO" },
0N/A {
"za*b?c\\dfg",
"KO",
"KO",
"KO" },
0N/A {
"axxbxc\\de",
"KO",
"KO",
"KO" },
0N/A {
"axxbxc\\deg",
"KO",
"KO",
"KO" },
0N/A {
"zaxxbxc\\de",
"KO",
"KO",
"KO" },
0N/A {
"zaxxbxc\\deg",
"KO",
"KO",
"KO" },
0N/A {
"axxbxc\\df",
"KO",
"KO",
"KO" },
0N/A {
"axxbxc\\dfg",
"KO",
"KO",
"KO" },
0N/A {
"zaxxbxc\\df",
"KO",
"KO",
"KO" },
0N/A {
"zaxxbxc\\dfg",
"KO",
"KO",
"KO" },
0N/A "\n--- Test javax.management.Query.{initial|any|final}SubString ---");