/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4716807
* @summary Test if the repository supports correctly the use of
* wildcards in the ObjectName key properties value part.
* @author Luis-Miguel Alventosa
* @run clean RepositoryWildcardTest
* @run build RepositoryWildcardTest
* @run main RepositoryWildcardTest
*/
public class RepositoryWildcardTest {
"javax.management.monitor.StringMonitor";
throws Exception {
int error = 0;
try {
error++;
} catch (RuntimeOperationsException e) {
}
return error;
}
throws Exception {
int error = 0;
try {
error++;
} catch (InstanceNotFoundException e) {
}
return error;
}
throws Exception {
int error = 0;
} else {
error++;
}
return error;
}
int error = 0;
ObjectName[] namesArray = {
"p7=v7,p8=v8,p9=v9,p10=v10,p11=v11,p12=v12")
};
"d:p1=v?,p2=v?,p3=v?,p4=v?,p5=v?,p6=v?," +
"p7=v?,p8=v?,p9=v?,p10=v??,p11=v??,p12=v??",
if (error > 0) {
throw new IllegalArgumentException(msg);
} else {
}
}
}