DITContentRuleSyntaxTest.java revision 873
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 * You can obtain a copy of the license at 316N/A * See the License for the specific language governing permissions 316N/A * and limitations under the License. 316N/A * When distributing Covered Code, include this CDDL HEADER in each 316N/A * file and include the License file at 316N/A * add the following below this CDDL HEADER, with the fields enclosed 873N/A * by brackets "[]" replaced with your own identifying information: 316N/A * Portions Copyright [yyyy] [name of copyright owner] 733N/A * Portions Copyright 2006-2007 Sun Microsystems, Inc. 316N/A * Test the DITContentRuleSyntax. 316N/A {
"( 2.5.6.4 DESC 'content rule for organization' NOT " 316N/A +
"( x121Address $ telexNumber ) )",
true},
316N/A {
"( 2.5.6.4 NAME 'full rule' DESC 'rule with all possible fields' " 723N/A +
" AUX ( posixAccount )" 316N/A +
" NOT ( x121Address $ telexNumber ) )" 316N/A {
"( 2.5.6.4 NAME 'full rule' DESC 'ommit parenthesis' " 316N/A {
"( 2.5.6.4 NAME 'full rule' DESC 'use numeric OIDs' " 723N/A +
" AUX 1.3.6.1.1.1.2.0" 316N/A {
"( 2.5.6.4 NAME 'full rule' DESC 'illegal OIDs' " 316N/A {
"( 2.5.6.4 NAME 'full rule' DESC 'illegal OIDs' " 316N/A {
"( 2.5.6.4 NAME 'full rule' DESC 'missing closing parenthesis' " 316N/A {
"( 2.5.6.4 NAME 'full rule' DESC 'extra parameterss' " 316N/A +
"( this is an extra parameter )"