directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1163232 [2/2] - in /directory/studio/trunk/plugins: connection.core/src/main/java/org/apache/directory/studio/connection/core/ connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/ ldapbrowser.common/ ldapbrows...
Date Tue, 30 Aug 2011 14:31:50 GMT
Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/difference/DifferenceEngine.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/difference/DifferenceEngine.java?rev=1163232&r1=1163231&r2=1163232&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/difference/DifferenceEngine.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/difference/DifferenceEngine.java
Tue Aug 30 14:31:49 2011
@@ -30,6 +30,7 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.model.schema.ObjectClassTypeEnum;
 import org.apache.directory.shared.ldap.model.schema.SchemaObject;
 import org.apache.directory.shared.ldap.model.schema.UsageEnum;
+import org.apache.directory.shared.util.Strings;
 import org.apache.directory.studio.schemaeditor.model.Schema;
 
 
@@ -59,18 +60,18 @@ public class DifferenceEngine
         Map<String, Schema> mapL1 = new HashMap<String, Schema>();
         for ( Schema schema : l1 )
         {
-            mapL1.put( schema.getSchemaName().toLowerCase(), schema );
+            mapL1.put( Strings.toLowerCase( schema.getSchemaName() ), schema );
         }
         Map<String, Schema> mapL2 = new HashMap<String, Schema>();
         for ( Schema schema : l2 )
         {
-            mapL2.put( schema.getSchemaName().toLowerCase(), schema );
+            mapL2.put( Strings.toLowerCase( schema.getSchemaName() ), schema );
         }
 
         // Looping on schemas from the first list
         for ( Schema schemaFromL1 : l1 )
         {
-            Schema schemaFromL2 = mapL2.get( schemaFromL1.getSchemaName().toLowerCase() );
+            Schema schemaFromL2 = mapL2.get( Strings.toLowerCase( schemaFromL1.getSchemaName()
) );
             if ( schemaFromL2 == null )
             {
                 SchemaDifference schemaDifference = new SchemaDifference( schemaFromL1, null,
DifferenceType.REMOVED );
@@ -207,7 +208,7 @@ public class DifferenceEngine
         // Looping on schemas from the second list
         for ( Schema schemaFromL2 : l2 )
         {
-            Schema schemaFromL1 = mapL1.get( schemaFromL2.getSchemaName().toLowerCase() );
+            Schema schemaFromL1 = mapL1.get( Strings.toLowerCase( schemaFromL2.getSchemaName()
) );
             if ( schemaFromL1 == null )
             {
                 SchemaDifference schemaDifference = new SchemaDifference( null, schemaFromL2,
DifferenceType.ADDED );

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/hierarchy/HierarchyManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/hierarchy/HierarchyManager.java?rev=1163232&r1=1163231&r2=1163232&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/hierarchy/HierarchyManager.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/hierarchy/HierarchyManager.java
Tue Aug 30 14:31:49 2011
@@ -26,6 +26,7 @@ import org.apache.commons.collections.ma
 import org.apache.directory.shared.ldap.model.schema.AttributeType;
 import org.apache.directory.shared.ldap.model.schema.ObjectClass;
 import org.apache.directory.shared.ldap.model.schema.SchemaObject;
+import org.apache.directory.shared.util.Strings;
 import org.apache.directory.studio.schemaeditor.Activator;
 import org.apache.directory.studio.schemaeditor.controller.SchemaHandler;
 import org.apache.directory.studio.schemaeditor.model.Schema;
@@ -95,8 +96,8 @@ public class HierarchyManager
             {
                 // Then, its parent is the name of its superior and
                 // it becomes the children of it and the RootObject
-                parentsMap.put( at, superiorName.toLowerCase() );
-                childrenMap.put( superiorName.toLowerCase(), at );
+                parentsMap.put( at, Strings.toLowerCase( superiorName ) );
+                childrenMap.put( Strings.toLowerCase( superiorName ), at );
                 childrenMap.put( root, at );
             }
         }
@@ -130,8 +131,8 @@ public class HierarchyManager
                 ObjectClass superClass = schemaHandler.getObjectClass( superClassName );
                 if ( superClass == null )
                 {
-                    parentsMap.put( oc, superClassName.toLowerCase() );
-                    childrenMap.put( superClassName.toLowerCase(), oc );
+                    parentsMap.put( oc, Strings.toLowerCase( superClassName ) );
+                    childrenMap.put( Strings.toLowerCase( superClassName ), oc );
                     childrenMap.put( root, oc );
                 }
                 else
@@ -238,16 +239,16 @@ public class HierarchyManager
             {
                 // Looking for children objects for this alias value
                 @SuppressWarnings("unchecked")
-                List<Object> children = ( List<Object> ) childrenMap.get( alias.toLowerCase()
);
+                List<Object> children = ( List<Object> ) childrenMap.get( Strings.toLowerCase(
alias ) );
                 if ( children != null )
                 {
                     for ( Object value : children )
                     {
                         childrenMap.put( object, value );
-                        parentsMap.remove( value, alias.toLowerCase() );
+                        parentsMap.remove( value, Strings.toLowerCase( alias ) );
                         parentsMap.put( value, object );
                     }
-                    childrenMap.remove( alias.toLowerCase() );
+                    childrenMap.remove( Strings.toLowerCase( alias ) );
                 }
             }
         }
@@ -258,7 +259,7 @@ public class HierarchyManager
         {
             // Looking for children objects for this OID value
             @SuppressWarnings("unchecked")
-            List<Object> children = ( List<Object> ) childrenMap.get( oid.toLowerCase()
);
+            List<Object> children = ( List<Object> ) childrenMap.get( Strings.toLowerCase(
oid ) );
             if ( children != null )
             {
                 for ( Object value : children )
@@ -268,11 +269,11 @@ public class HierarchyManager
                     {
                         childrenMap.remove( root, value );
                     }
-                    parentsMap.remove( value, oid.toLowerCase() );
+                    parentsMap.remove( value, Strings.toLowerCase( oid ) );
                     parentsMap.put( value, object );
 
                 }
-                childrenMap.remove( oid.toLowerCase() );
+                childrenMap.remove( Strings.toLowerCase( oid ) );
             }
         }
     }
@@ -413,7 +414,7 @@ public class HierarchyManager
             AttributeType superiorAT = schemaHandler.getAttributeType( superiorName );
             if ( superiorAT == null )
             {
-                childrenMap.remove( superiorName.toLowerCase(), at );
+                childrenMap.remove( Strings.toLowerCase( superiorName ), at );
             }
             else
             {
@@ -440,8 +441,8 @@ public class HierarchyManager
                 String childSuperiorName = childAT.getSuperiorOid();
                 if ( ( childSuperiorName != null ) && ( !"".equals( childSuperiorName
) ) ) //$NON-NLS-1$
                 {
-                    parentsMap.put( child, childSuperiorName.toLowerCase() );
-                    childrenMap.put( childSuperiorName.toLowerCase(), child );
+                    parentsMap.put( child, Strings.toLowerCase( childSuperiorName ) );
+                    childrenMap.put( Strings.toLowerCase( childSuperiorName ), child );
                 }
             }
         }
@@ -464,7 +465,7 @@ public class HierarchyManager
                     ObjectClass superClassOC = schemaHandler.getObjectClass( superClassName
);
                     if ( superClassOC == null )
                     {
-                        childrenMap.remove( superClassName.toLowerCase(), oc );
+                        childrenMap.remove( Strings.toLowerCase( superClassName ), oc );
                         childrenMap.remove( root, oc );
                     }
                     else
@@ -515,8 +516,8 @@ public class HierarchyManager
                     String correctSuperClassName = getCorrectSuperClassName( oc, childSuperClassesNames
);
                     if ( correctSuperClassName != null )
                     {
-                        parentsMap.put( child, correctSuperClassName.toLowerCase() );
-                        childrenMap.put( correctSuperClassName.toLowerCase(), child );
+                        parentsMap.put( child, Strings.toLowerCase( correctSuperClassName
) );
+                        childrenMap.put( Strings.toLowerCase( correctSuperClassName ), child
);
                     }
                 }
                 else

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/EditAliasesDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/EditAliasesDialog.java?rev=1163232&r1=1163231&r2=1163232&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/EditAliasesDialog.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/dialogs/EditAliasesDialog.java
Tue Aug 30 14:31:49 2011
@@ -24,6 +24,7 @@ package org.apache.directory.studio.sche
 import java.util.ArrayList;
 import java.util.List;
 
+import org.apache.directory.shared.util.Strings;
 import org.apache.directory.studio.schemaeditor.Activator;
 import org.apache.directory.studio.schemaeditor.PluginUtils;
 import org.eclipse.jface.action.Action;
@@ -115,9 +116,9 @@ public class EditAliasesDialog extends D
         {
             for ( String alias : aliases )
             {
-                initialLowerCasedAliases.add( alias.toLowerCase() );
+                initialLowerCasedAliases.add( Strings.toLowerCase( alias ) );
                 this.aliases.add( alias );
-                lowerCasedAliases.add( alias.toLowerCase() );
+                lowerCasedAliases.add( Strings.toLowerCase( alias ) );
             }
         }
 
@@ -328,7 +329,7 @@ public class EditAliasesDialog extends D
         for ( TableItem item : selectedItems )
         {
             aliases.remove( item.getText() );
-            lowerCasedAliases.remove( item.getText().toLowerCase() );
+            lowerCasedAliases.remove( Strings.toLowerCase( item.getText() ) );
         }
         dirty = true;
     }
@@ -403,11 +404,11 @@ public class EditAliasesDialog extends D
             if ( !oldText.equals( newText ) )
             {
                 aliases.remove( oldText );
-                lowerCasedAliases.remove( oldText.toLowerCase() );
+                lowerCasedAliases.remove( Strings.toLowerCase( oldText ) );
                 if ( !newText.equals( "" ) ) //$NON-NLS-1$
                 {
                     aliases.add( newText );
-                    lowerCasedAliases.add( newText.toLowerCase() );
+                    lowerCasedAliases.add( Strings.toLowerCase( newText ) );
                 }
                 item.setText( newText );
                 dirty = true;
@@ -442,7 +443,7 @@ public class EditAliasesDialog extends D
         for ( String alias : aliases )
         {
             if ( ( Activator.getDefault().getSchemaHandler().isAliasOrOidAlreadyTaken( alias
) )
-                && ( !initialLowerCasedAliases.contains( alias.toLowerCase() ) )
)
+                && ( !initialLowerCasedAliases.contains( Strings.toLowerCase( alias
) ) ) )
             {
                 errorComposite.setVisible( true );
                 errorLabel.setText( Messages.getString( "EditAliasesDialog.ElementWithSameAliasExists"
) ); //$NON-NLS-1$

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEUsedByMandatoryTableContentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEUsedByMandatoryTableContentProvider.java?rev=1163232&r1=1163231&r2=1163232&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEUsedByMandatoryTableContentProvider.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEUsedByMandatoryTableContentProvider.java
Tue Aug 30 14:31:49 2011
@@ -27,6 +27,7 @@ import java.util.List;
 
 import org.apache.directory.shared.ldap.model.schema.AttributeType;
 import org.apache.directory.shared.ldap.model.schema.ObjectClass;
+import org.apache.directory.shared.util.Strings;
 import org.apache.directory.studio.schemaeditor.Activator;
 import org.apache.directory.studio.schemaeditor.controller.SchemaHandler;
 import org.eclipse.jface.viewers.IStructuredContentProvider;
@@ -58,7 +59,7 @@ public class ATEUsedByMandatoryTableCont
             {
                 for ( String name : atNames )
                 {
-                    names.add( name.toLowerCase() );
+                    names.add( Strings.toLowerCase( name ) );
                 }
             }
 
@@ -70,7 +71,7 @@ public class ATEUsedByMandatoryTableCont
                 {
                     for ( String must : musts )
                     {
-                        if ( names.contains( must.toLowerCase() ) )
+                        if ( names.contains( Strings.toLowerCase( must ) ) )
                         {
                             results.add( oc );
                         }

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEUsedByOptionalTableContentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEUsedByOptionalTableContentProvider.java?rev=1163232&r1=1163231&r2=1163232&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEUsedByOptionalTableContentProvider.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/ATEUsedByOptionalTableContentProvider.java
Tue Aug 30 14:31:49 2011
@@ -27,6 +27,7 @@ import java.util.List;
 
 import org.apache.directory.shared.ldap.model.schema.AttributeType;
 import org.apache.directory.shared.ldap.model.schema.ObjectClass;
+import org.apache.directory.shared.util.Strings;
 import org.apache.directory.studio.schemaeditor.Activator;
 import org.apache.directory.studio.schemaeditor.controller.SchemaHandler;
 import org.eclipse.jface.viewers.IStructuredContentProvider;
@@ -58,7 +59,7 @@ public class ATEUsedByOptionalTableConte
             {
                 for ( String name : atNames )
                 {
-                    names.add( name.toLowerCase() );
+                    names.add( Strings.toLowerCase( name ) );
                 }
             }
 
@@ -70,7 +71,7 @@ public class ATEUsedByOptionalTableConte
                 {
                     for ( String may : mays )
                     {
-                        if ( names.contains( may.toLowerCase() ) )
+                        if ( names.contains( Strings.toLowerCase( may ) ) )
                         {
                             results.add( oc );
                         }

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/ExportSchemasForADSWizard.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/ExportSchemasForADSWizard.java?rev=1163232&r1=1163231&r2=1163232&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/ExportSchemasForADSWizard.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/ExportSchemasForADSWizard.java
Tue Aug 30 14:31:49 2011
@@ -39,6 +39,7 @@ import org.apache.directory.shared.conve
 import org.apache.directory.shared.ldap.model.exception.LdapException;
 import org.apache.directory.shared.ldap.model.schema.AttributeType;
 import org.apache.directory.shared.ldap.model.schema.ObjectClass;
+import org.apache.directory.shared.util.Strings;
 import org.apache.directory.studio.schemaeditor.Activator;
 import org.apache.directory.studio.schemaeditor.PluginUtils;
 import org.apache.directory.studio.schemaeditor.controller.SchemaHandler;
@@ -408,7 +409,7 @@ public class ExportSchemasForADSWizard e
         {
             for ( String name : oc.getNames() )
             {
-                objectClassNames.add( name.toLowerCase() );
+                objectClassNames.add( Strings.toLowerCase( name ) );
             }
         }
 
@@ -425,14 +426,14 @@ public class ExportSchemasForADSWizard e
                 ObjectClass oc = unsortedIterator.next();
                 for ( String superName : oc.getSuperiorOids() )
                 {
-                    if ( !objectClassNames.contains( superName.toLowerCase() )
-                        || movedObjectClasses.contains( superName.toLowerCase() ) )
+                    if ( !objectClassNames.contains( Strings.toLowerCase( superName ) )
+                        || movedObjectClasses.contains( Strings.toLowerCase( superName )
) )
                     {
                         unsortedIterator.remove();
                         sortedObjectClasses.add( oc );
                         for ( String name : oc.getNames() )
                         {
-                            movedObjectClasses.add( name.toLowerCase() );
+                            movedObjectClasses.add( Strings.toLowerCase( name ) );
                         }
                         moved = true;
                         break;
@@ -475,7 +476,7 @@ public class ExportSchemasForADSWizard e
                 AttributeType sup = schemaHandler.getAttributeType( supName );
                 if ( sup != null )
                 {
-                    if ( !schema.getSchemaName().toLowerCase().equals( sup.getSchemaName().toLowerCase()
) )
+                    if ( !Strings.toLowerCase( schema.getSchemaName() ).equals( Strings.toLowerCase(
sup.getSchemaName() ) ) )
                     {
                         schemaNames.add( sup.getSchemaName() );
                     }
@@ -495,7 +496,7 @@ public class ExportSchemasForADSWizard e
                     ObjectClass sup = schemaHandler.getObjectClass( supName );
                     if ( sup != null )
                     {
-                        if ( !schema.getSchemaName().toLowerCase().equals( sup.getSchemaName().toLowerCase()
) )
+                        if ( !Strings.toLowerCase( schema.getSchemaName() ).equals( Strings.toLowerCase(
sup.getSchemaName() ) ) )
                         {
                             schemaNames.add( sup.getSchemaName() );
                         }
@@ -512,7 +513,7 @@ public class ExportSchemasForADSWizard e
                     AttributeType may = schemaHandler.getAttributeType( mayName );
                     if ( may != null )
                     {
-                        if ( !schema.getSchemaName().toLowerCase().equals( may.getSchemaName().toLowerCase()
) )
+                        if ( !Strings.toLowerCase( schema.getSchemaName() ).equals( Strings.toLowerCase(
may.getSchemaName() ) ) )
                         {
                             schemaNames.add( may.getSchemaName() );
                         }
@@ -530,7 +531,7 @@ public class ExportSchemasForADSWizard e
                     AttributeType must = schemaHandler.getAttributeType( mustName );
                     if ( must != null )
                     {
-                        if ( !schema.getSchemaName().toLowerCase().equals( must.getSchemaName().toLowerCase()
) )
+                        if ( !Strings.toLowerCase( schema.getSchemaName() ).equals( Strings.toLowerCase(
must.getSchemaName() ) ) )
                         {
                             schemaNames.add( must.getSchemaName() );
                         }

Modified: directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectGuidValueEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectGuidValueEditor.java?rev=1163232&r1=1163231&r2=1163232&view=diff
==============================================================================
--- directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectGuidValueEditor.java
(original)
+++ directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectGuidValueEditor.java
Tue Aug 30 14:31:49 2011
@@ -22,6 +22,7 @@ package org.apache.directory.studio.valu
 
 
 import org.apache.commons.codec.binary.Hex;
+import org.apache.directory.shared.util.Strings;
 import org.apache.directory.studio.ldapbrowser.core.model.IValue;
 import org.apache.directory.studio.valueeditors.HexValueEditor;
 
@@ -89,7 +90,7 @@ public class InPlaceMsAdObjectGuidValueE
         sb.append( '-' );
         sb.append( hex, 20, 12 );
         sb.append( '}' );
-        return sb.toString().toLowerCase();
+        return Strings.toLowerCase( sb.toString() );
     }
 
 }

Modified: directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditor.java?rev=1163232&r1=1163231&r2=1163232&view=diff
==============================================================================
--- directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditor.java
(original)
+++ directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditor.java
Tue Aug 30 14:31:49 2011
@@ -85,6 +85,6 @@ public class InPlaceUuidValueEditor exte
         sb.append( hex, 16, 4 );
         sb.append( '-' );
         sb.append( hex, 20, 12 );
-        return sb.toString().toLowerCase();
+        return Strings.toLowerCase( sb.toString() );
     }
 }

Modified: directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectGuidValueEditorTest.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectGuidValueEditorTest.java?rev=1163232&r1=1163231&r2=1163232&view=diff
==============================================================================
--- directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectGuidValueEditorTest.java
(original)
+++ directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectGuidValueEditorTest.java
Tue Aug 30 14:31:49 2011
@@ -23,6 +23,7 @@ package org.apache.directory.studio.valu
 
 import static junit.framework.Assert.assertEquals;
 
+import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
 
 
@@ -42,7 +43,7 @@ public class InPlaceMsAdObjectGuidValueE
                 ( byte ) 0xBD, ( byte ) 0x06, //
                 ( byte ) 0xE3, ( byte ) 0xA4, ( byte ) 0x09, ( byte ) 0x96, ( byte ) 0xA9,
( byte ) 0xA8 };
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "{db78ba89-b85f-447f-bd06-e3a40996a9a8}".toLowerCase(), displayValue
);
+        assertEquals( Strings.toLowerCase( "{db78ba89-b85f-447f-bd06-e3a40996a9a8}" ), displayValue
);
     }
 
 
@@ -59,7 +60,7 @@ public class InPlaceMsAdObjectGuidValueE
                 ( byte ) 0x88, ( byte ) 0x99, //
                 ( byte ) 0xAA, ( byte ) 0xBB, ( byte ) 0xCC, ( byte ) 0xDD, ( byte ) 0xEE,
( byte ) 0xFF };
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "{33221100-5544-7766-8899-AABBCCDDEEFF}".toLowerCase(), displayValue
);
+        assertEquals( Strings.toLowerCase( "{33221100-5544-7766-8899-AABBCCDDEEFF}" ), displayValue
);
     }
 
 

Modified: directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditorTest.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditorTest.java?rev=1163232&r1=1163231&r2=1163232&view=diff
==============================================================================
--- directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditorTest.java
(original)
+++ directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditorTest.java
Tue Aug 30 14:31:49 2011
@@ -23,6 +23,7 @@ package org.apache.directory.studio.valu
 
 import static junit.framework.Assert.assertEquals;
 
+import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
 
 
@@ -42,7 +43,7 @@ public class InPlaceUuidValueEditorTest
                 ( byte ) 0x80, ( byte ) 0xb4, //
                 ( byte ) 0x00, ( byte ) 0xc0, ( byte ) 0x4f, ( byte ) 0xd4, ( byte ) 0x30,
( byte ) 0xc8 };
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "6ba7b810-9dad-11d1-80b4-00c04fd430c8".toLowerCase(), displayValue
);
+        assertEquals( Strings.toLowerCase( "6ba7b810-9dad-11d1-80b4-00c04fd430c8" ), displayValue
);
     }
 
 
@@ -59,7 +60,7 @@ public class InPlaceUuidValueEditorTest
                 ( byte ) 0x88, ( byte ) 0x99, //
                 ( byte ) 0xAA, ( byte ) 0xBB, ( byte ) 0xCC, ( byte ) 0xDD, ( byte ) 0xEE,
( byte ) 0xFF };
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "00112233-4455-6677-8899-AABBCCDDEEFF".toLowerCase(), displayValue
);
+        assertEquals( Strings.toLowerCase( "00112233-4455-6677-8899-AABBCCDDEEFF" ), displayValue
);
     }
 
 



Mime
View raw message