Examples of MutableAttributeType


Examples of org.apache.directory.api.ldap.model.schema.MutableAttributeType

     *
     * @throws Exception
     */
    public void testModifyNoUserModificationDifference() throws Exception
    {
        MutableAttributeType o1 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o1.setUserModifiable( true );
        MutableAttributeType o2 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o2.setUserModifiable( false );

        List<PropertyDifference> differences = DifferenceEngine.getDifferences( o1, o2 );

        assertEquals( 1, differences.size() );

View Full Code Here

Examples of org.apache.directory.api.ldap.model.schema.MutableAttributeType

     *
     * @throws Exception
     */
    public void testModifyOrderingDifference() throws Exception
    {
        MutableAttributeType o1 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o1.setOrderingOid( "orderingName" ); //$NON-NLS-1$
        MutableAttributeType o2 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o2.setOrderingOid( "newOrderingName" ); //$NON-NLS-1$

        List<PropertyDifference> differences = DifferenceEngine.getDifferences( o1, o2 );

        assertEquals( 1, differences.size() );

View Full Code Here

Examples of org.apache.directory.api.ldap.model.schema.MutableAttributeType

     *
     * @throws Exception
     */
    public void testModifySingleValueDifference() throws Exception
    {
        MutableAttributeType o1 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o1.setSingleValued( true );
        MutableAttributeType o2 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o2.setSingleValued( false );

        List<PropertyDifference> differences = DifferenceEngine.getDifferences( o1, o2 );

        assertEquals( 1, differences.size() );

View Full Code Here

Examples of org.apache.directory.api.ldap.model.schema.MutableAttributeType

     *
     * @throws Exception
     */
    public void testModifySubstringDifference() throws Exception
    {
        MutableAttributeType o1 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o1.setSubstringOid( "substrName" ); //$NON-NLS-1$
        MutableAttributeType o2 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o2.setSubstringOid( "newSubstrName" ); //$NON-NLS-1$

        List<PropertyDifference> differences = DifferenceEngine.getDifferences( o1, o2 );

        assertEquals( 1, differences.size() );

View Full Code Here

Examples of org.apache.directory.api.ldap.model.schema.MutableAttributeType

     *
     * @throws Exception
     */
    public void testModifySuperiorATDifference() throws Exception
    {
        MutableAttributeType o1 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o1.setSuperiorOid( "superiorName" ); //$NON-NLS-1$
        MutableAttributeType o2 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o2.setSuperiorOid( "newSuperiorName" ); //$NON-NLS-1$

        List<PropertyDifference> differences = DifferenceEngine.getDifferences( o1, o2 );

        assertEquals( 1, differences.size() );

View Full Code Here

Examples of org.apache.directory.api.ldap.model.schema.MutableAttributeType

     *
     * @throws Exception
     */
    public void testModifySyntaxDifference() throws Exception
    {
        MutableAttributeType o1 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o1.setSyntaxOid( "1.2.3.4.5" ); //$NON-NLS-1$
        MutableAttributeType o2 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o2.setSyntaxOid( "1.2.3.4.6" ); //$NON-NLS-1$

        List<PropertyDifference> differences = DifferenceEngine.getDifferences( o1, o2 );

        assertEquals( 1, differences.size() );

View Full Code Here

Examples of org.apache.directory.api.ldap.model.schema.MutableAttributeType

     *
     * @throws Exception
     */
    public void testModifySyntaxLengthDifference() throws Exception
    {
        MutableAttributeType o1 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o1.setSyntaxLength( 1234 );
        MutableAttributeType o2 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o2.setSyntaxLength( 12345 );

        List<PropertyDifference> differences = DifferenceEngine.getDifferences( o1, o2 );

        assertEquals( 1, differences.size() );

View Full Code Here

Examples of org.apache.directory.api.ldap.model.schema.MutableAttributeType

     *
     * @throws Exception
     */
    public void testModifyUsageDifference() throws Exception
    {
        MutableAttributeType o1 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o1.setUsage( UsageEnum.DISTRIBUTED_OPERATION );
        MutableAttributeType o2 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o2.setUsage( UsageEnum.DIRECTORY_OPERATION );

        List<PropertyDifference> differences = DifferenceEngine.getDifferences( o1, o2 );

        assertEquals( 1, differences.size() );

View Full Code Here

Examples of org.apache.directory.api.ldap.model.schema.MutableAttributeType

     *
     * @throws Exception
     */
    public void testRemoveEqualityDifference() throws Exception
    {
        MutableAttributeType o1 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o1.setEqualityOid( "equalityName" ); //$NON-NLS-1$
        AttributeType o2 = new AttributeType( "1.2.3.4" ); //$NON-NLS-1$

        List<PropertyDifference> differences = DifferenceEngine.getDifferences( o1, o2 );

        assertEquals( 1, differences.size() );
View Full Code Here

Examples of org.apache.directory.api.ldap.model.schema.MutableAttributeType

     *
     * @throws Exception
     */
    public void testRemoveOrderingDifference() throws Exception
    {
        MutableAttributeType o1 = new MutableAttributeType( "1.2.3.4" ); //$NON-NLS-1$
        o1.setOrderingOid( "orderingName" ); //$NON-NLS-1$
        AttributeType o2 = new AttributeType( "1.2.3.4" ); //$NON-NLS-1$

        List<PropertyDifference> differences = DifferenceEngine.getDifferences( o1, o2 );

        assertEquals( 1, differences.size() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.