directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1432135 - in /directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors: msad/ uuid/
Date Fri, 11 Jan 2013 16:23:39 GMT
Author: pamarcelot
Date: Fri Jan 11 16:23:38 2013
New Revision: 1432135

URL: http://svn.apache.org/viewvc?rev=1432135&view=rev
Log:
Externalized and translated strings.

Modified:
    directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectGuidValueEditorTest.java
    directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectSidValueEditorTest.java
    directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditorTest.java

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=1432135&r1=1432134&r2=1432135&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
Fri Jan 11 16:23:38 2013
@@ -95,7 +95,7 @@ public class InPlaceMsAdObjectGuidValueE
         byte[] bytes = new byte[]
             { ( byte ) 0x00, ( byte ) 0x11, ( byte ) 0x22, ( byte ) 0x33 };
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "Invalid GUID", displayValue );
+        assertEquals(  Messages.getString( "InPlaceMsAdObjectGuidValueEditor.InvalidGuid"
), displayValue ); //$NON-NLS-1$
 
         // test too long
         byte[] bytes2 = new byte[]
@@ -104,7 +104,7 @@ public class InPlaceMsAdObjectGuidValueE
                 ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,
( byte ) 0x00,
                 ( byte ) 0x00, };
         String displayValue2 = editor.convertToString( bytes2 );
-        assertEquals( "Invalid GUID", displayValue2 );
+        assertEquals(  Messages.getString( "InPlaceMsAdObjectGuidValueEditor.InvalidGuid"
), displayValue2 ); //$NON-NLS-1$
     }
 
 
@@ -114,6 +114,6 @@ public class InPlaceMsAdObjectGuidValueE
         InPlaceMsAdObjectGuidValueEditor editor = new InPlaceMsAdObjectGuidValueEditor();
         byte[] bytes = null;
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "Invalid GUID", displayValue );
+        assertEquals(  Messages.getString( "InPlaceMsAdObjectGuidValueEditor.InvalidGuid"
), displayValue ); //$NON-NLS-1$
     }
 }

Modified: directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectSidValueEditorTest.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectSidValueEditorTest.java?rev=1432135&r1=1432134&r2=1432135&view=diff
==============================================================================
--- directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectSidValueEditorTest.java
(original)
+++ directory/studio/trunk/plugins/valueeditors/src/test/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectSidValueEditorTest.java
Fri Jan 11 16:23:38 2013
@@ -134,7 +134,7 @@ public class InPlaceMsAdObjectSidValueEd
         byte[] bytes = new byte[]
             { ( byte ) 0x00 };
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "Invalid SID", displayValue );
+        assertEquals( Messages.getString( "InPlaceMsAdObjectSidValueEditor.InvalidSid" ),
displayValue ); //$NON-NLS-1$
 
         // test missing sub aurhority byte
         byte[] bytes2 = new byte[]
@@ -170,7 +170,7 @@ public class InPlaceMsAdObjectSidValueEd
                 ( byte ) 0x00, /*( byte ) 0x00*///
             };
         String displayValue2 = editor.convertToString( bytes2 );
-        assertEquals( "Invalid SID", displayValue2 );
+        assertEquals( Messages.getString( "InPlaceMsAdObjectSidValueEditor.InvalidSid" ),
displayValue2 ); //$NON-NLS-1$
 
         // test additional sub authority byte
         byte[] bytes3 = new byte[]
@@ -208,7 +208,7 @@ public class InPlaceMsAdObjectSidValueEd
                 ( byte ) 0x00 //
         };
         String displayValue3 = editor.convertToString( bytes3 );
-        assertEquals( "Invalid SID", displayValue3 );
+        assertEquals( Messages.getString( "InPlaceMsAdObjectSidValueEditor.InvalidSid" ),
displayValue3 ); //$NON-NLS-1$
     }
 
 
@@ -218,6 +218,6 @@ public class InPlaceMsAdObjectSidValueEd
         InPlaceMsAdObjectSidValueEditor editor = new InPlaceMsAdObjectSidValueEditor();
         byte[] bytes = null;
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "Invalid SID", displayValue );
+        assertEquals( Messages.getString( "InPlaceMsAdObjectSidValueEditor.InvalidSid" ),
displayValue ); //$NON-NLS-1$
     }
 }

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=1432135&r1=1432134&r2=1432135&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
Fri Jan 11 16:23:38 2013
@@ -95,7 +95,7 @@ public class InPlaceUuidValueEditorTest
         byte[] bytes = new byte[]
             { ( byte ) 0x00, ( byte ) 0x11, ( byte ) 0x22, ( byte ) 0x33 };
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "Invalid UUID", displayValue );
+        assertEquals( Messages.getString( "InPlaceUuidValueEditor.InvalidUuid" ), displayValue
); //$NON-NLS-1$
 
         // test too long
         byte[] bytes2 = new byte[]
@@ -104,7 +104,7 @@ public class InPlaceUuidValueEditorTest
                 ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,
( byte ) 0x00,
                 ( byte ) 0x00, };
         String displayValue2 = editor.convertToString( bytes2 );
-        assertEquals( "Invalid UUID", displayValue2 );
+        assertEquals( Messages.getString( "InPlaceUuidValueEditor.InvalidUuid" ), displayValue2
); //$NON-NLS-1$
     }
 
 
@@ -114,7 +114,7 @@ public class InPlaceUuidValueEditorTest
         InPlaceUuidValueEditor editor = new InPlaceUuidValueEditor();
         byte[] bytes = null;
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "Invalid UUID", displayValue );
+        assertEquals( Messages.getString( "InPlaceUuidValueEditor.InvalidUuid" ), displayValue
); //$NON-NLS-1$
     }
 
 }



Mime
View raw message