316N/A/*
316N/A * CDDL HEADER START
316N/A *
316N/A * The contents of this file are subject to the terms of the
316N/A * Common Development and Distribution License, Version 1.0 only
316N/A * (the "License"). You may not use this file except in compliance
316N/A * with the License.
316N/A *
6982N/A * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6982N/A * or http://forgerock.org/license/CDDLv1.0.html.
316N/A * See the License for the specific language governing permissions
316N/A * and limitations under the License.
316N/A *
316N/A * When distributing Covered Code, include this CDDL HEADER in each
6982N/A * file and include the License file at legal-notices/CDDLv1_0.txt.
6982N/A * If applicable, add the following below this CDDL HEADER, with the
6982N/A * fields enclosed by brackets "[]" replaced with your own identifying
6982N/A * information:
316N/A * Portions Copyright [yyyy] [name of copyright owner]
316N/A *
316N/A * CDDL HEADER END
316N/A *
316N/A *
3232N/A * Copyright 2006-2008 Sun Microsystems, Inc.
316N/A */
316N/Apackage org.opends.server.schema;
316N/A
316N/Aimport org.opends.server.api.AttributeSyntax;
316N/Aimport org.testng.annotations.DataProvider;
316N/A
316N/A/**
316N/A * Test the MatchingRuleSyntax.
316N/A */
316N/Apublic class MatchingRuleSyntaxTest extends AttributeSyntaxTest
316N/A{
316N/A
316N/A /**
316N/A * {@inheritDoc}
316N/A */
316N/A @Override
2342N/A protected AttributeSyntax getRule()
316N/A {
316N/A return new MatchingRuleSyntax();
316N/A }
316N/A
316N/A /**
316N/A * {@inheritDoc}
316N/A */
316N/A @Override
316N/A @DataProvider(name="acceptableValues")
316N/A public Object[][] createAcceptableValues()
316N/A {
316N/A return new Object [][] {
316N/A {"( 1.2.3.4 NAME 'full matching rule' "
316N/A + " DESC 'description of matching rule' OBSOLETE "
316N/A + " SYNTAX 1.3.6.1.4.1.1466.115.121.1.17 "
316N/A + " ( this is an extension ) )", true},
316N/A {"( 1.2.3.4 NAME 'missing closing parenthesis' "
316N/A + " DESC 'description of matching rule' "
316N/A + " SYNTAX 1.3.6.1.4.1.1466.115.121.1.17 "
316N/A + " ( this is an extension ) ", false},
316N/A };
316N/A }
316N/A
316N/A}