directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1228283 - in /directory/studio/trunk/plugins/valueeditors/src: main/java/org/apache/directory/studio/valueeditors/msad/ test/java/org/apache/directory/studio/valueeditors/msad/ test/java/org/apache/directory/studio/valueeditors/uuid/
Date Fri, 06 Jan 2012 17:10:41 GMT
Author: pamarcelot
Date: Fri Jan  6 17:10:40 2012
New Revision: 1228283

URL: http://svn.apache.org/viewvc?rev=1228283&view=rev
Log:
Marked strings as non-externalized.

Modified:
    directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectSidValueEditor.java
    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/main/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectSidValueEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectSidValueEditor.java?rev=1228283&r1=1228282&r2=1228283&view=diff
==============================================================================
--- directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectSidValueEditor.java
(original)
+++ directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/msad/InPlaceMsAdObjectSidValueEditor.java
Fri Jan  6 17:10:40 2012
@@ -74,7 +74,7 @@ public class InPlaceMsAdObjectSidValueEd
 
         if ( bytes == null || bytes.length < 8 )
         {
-            return "Invalid SID";
+            return "Invalid SID"; 
         }
 
         char[] hex = Hex.encodeHex( bytes );
@@ -94,7 +94,7 @@ public class InPlaceMsAdObjectSidValueEd
         // check length
         if ( bytes.length != ( 8 + count * 4 ) )
         {
-            return "Invalid SID";
+            return "Invalid SID"; 
         }
 
         // get authority, big-endian

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=1228283&r1=1228282&r2=1228283&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  6 17:10:40 2012
@@ -43,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( Strings.toLowerCase( "{db78ba89-b85f-447f-bd06-e3a40996a9a8}" ), displayValue
);
+        assertEquals( Strings.toLowerCase( "{db78ba89-b85f-447f-bd06-e3a40996a9a8}" ), displayValue
); //$NON-NLS-1$
     }
 
 
@@ -60,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( Strings.toLowerCase( "{33221100-5544-7766-8899-AABBCCDDEEFF}" ), displayValue
);
+        assertEquals( Strings.toLowerCase( "{33221100-5544-7766-8899-AABBCCDDEEFF}" ), displayValue
); //$NON-NLS-1$
     }
 
 
@@ -73,7 +73,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( "Invalid GUID", displayValue ); 
 
         // test too long
         byte[] bytes2 = new byte[]
@@ -82,7 +82,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( "Invalid GUID", displayValue2 ); 
     }
 
 
@@ -92,6 +92,6 @@ public class InPlaceMsAdObjectGuidValueE
         InPlaceMsAdObjectGuidValueEditor editor = new InPlaceMsAdObjectGuidValueEditor();
         byte[] bytes = null;
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "Invalid GUID", displayValue );
+        assertEquals( "Invalid GUID", displayValue ); 
     }
 }

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=1228283&r1=1228282&r2=1228283&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  6 17:10:40 2012
@@ -42,7 +42,7 @@ public class InPlaceMsAdObjectSidValueEd
                 ( byte ) 0x04, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00 //
             };
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "S-1-5-4", displayValue );
+        assertEquals( "S-1-5-4", displayValue ); //$NON-NLS-1$
     }
 
 
@@ -60,7 +60,7 @@ public class InPlaceMsAdObjectSidValueEd
                 ( byte ) 0x25, ( byte ) 0x02, ( byte ) 0x00, ( byte ) 0x00 //
             };
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "S-1-5-32-549", displayValue );
+        assertEquals( "S-1-5-32-549", displayValue ); //$NON-NLS-1$
     }
 
 
@@ -82,7 +82,7 @@ public class InPlaceMsAdObjectSidValueEd
                 ( byte ) 0xf4, ( byte ) 0x01, ( byte ) 0x00, ( byte ) 0x00 //
             };
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "S-1-5-21-666267311-2692216076-1860112551-500", displayValue );
+        assertEquals( "S-1-5-21-666267311-2692216076-1860112551-500", displayValue ); //$NON-NLS-1$
     }
 
 
@@ -95,7 +95,7 @@ public class InPlaceMsAdObjectSidValueEd
         byte[] bytes = new byte[]
             { ( byte ) 0x00 };
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "Invalid SID", displayValue );
+        assertEquals( "Invalid SID", displayValue ); 
 
         // test missing sub aurhority byte
         byte[] bytes2 = new byte[]
@@ -112,7 +112,7 @@ public class InPlaceMsAdObjectSidValueEd
                 ( byte ) 0xf4, ( byte ) 0x01, ( byte ) 0x00, /*( byte ) 0x00*///
             };
         String displayValue2 = editor.convertToString( bytes2 );
-        assertEquals( "Invalid SID", displayValue2 );
+        assertEquals( "Invalid SID", displayValue2 ); 
 
         // test additional sub authority byte
         byte[] bytes3 = new byte[]
@@ -129,7 +129,7 @@ public class InPlaceMsAdObjectSidValueEd
                 ( byte ) 0xf4, ( byte ) 0x01, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00
//
             };
         String displayValue3 = editor.convertToString( bytes3 );
-        assertEquals( "Invalid SID", displayValue3 );
+        assertEquals( "Invalid SID", displayValue3 ); 
     }
 
 
@@ -139,6 +139,6 @@ public class InPlaceMsAdObjectSidValueEd
         InPlaceMsAdObjectSidValueEditor editor = new InPlaceMsAdObjectSidValueEditor();
         byte[] bytes = null;
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "Invalid SID", displayValue );
+        assertEquals( "Invalid SID", 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=1228283&r1=1228282&r2=1228283&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  6 17:10:40 2012
@@ -43,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( Strings.toLowerCase( "6ba7b810-9dad-11d1-80b4-00c04fd430c8" ), displayValue
);
+        assertEquals( Strings.toLowerCase( "6ba7b810-9dad-11d1-80b4-00c04fd430c8" ), displayValue
); //$NON-NLS-1$
     }
 
 
@@ -60,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( Strings.toLowerCase( "00112233-4455-6677-8899-AABBCCDDEEFF" ), displayValue
);
+        assertEquals( Strings.toLowerCase( "00112233-4455-6677-8899-AABBCCDDEEFF" ), displayValue
); //$NON-NLS-1$
     }
 
 
@@ -73,7 +73,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( "Invalid UUID", displayValue ); 
 
         // test too long
         byte[] bytes2 = new byte[]
@@ -82,7 +82,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( "Invalid UUID", displayValue2 ); 
     }
 
 
@@ -92,7 +92,7 @@ public class InPlaceUuidValueEditorTest
         InPlaceUuidValueEditor editor = new InPlaceUuidValueEditor();
         byte[] bytes = null;
         String displayValue = editor.convertToString( bytes );
-        assertEquals( "Invalid UUID", displayValue );
+        assertEquals( "Invalid UUID", displayValue ); 
     }
 
 }



Mime
View raw message