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 *
316N/A * You can obtain a copy of the license at
316N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
316N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
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
316N/A * file and include the License file at
316N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
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]
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 TelexNumberSyntax.
316N/A */
316N/Apublic class TelexSyntaxTest 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 TelexNumberSyntax();
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 {"123$france$456", true},
316N/A {"abcdefghijk$lmnopqr$stuvwxyz", true},
1318N/A {"12345$67890$()+,-./:? ", true},
316N/A };
316N/A }
316N/A
316N/A}