directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r489092 - /directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/
Date Wed, 20 Dec 2006 13:55:06 GMT
Author: elecharny
Date: Wed Dec 20 05:55:05 2006
New Revision: 489092

URL: http://svn.apache.org/viewvc?view=rev&rev=489092
Log:
Modified the test to suppress warnings :
- test method don't throw a ParsingException
- Testcase.asserEquals can be written assertEquals (as the test class extends TestCase)

Modified:
    directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserAttributeTypeDescriptionTest.java
    directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserDITContentRuleDescriptionTest.java
    directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserLdapSyntaxDescriptionTest.java
    directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserMatchingRuleUseDescriptionTest.java
    directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserNameFormDescriptionTest.java
    directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserObjectClassDescriptionTest.java
    directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserTestUtils.java

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserAttributeTypeDescriptionTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserAttributeTypeDescriptionTest.java?view=diff&rev=489092&r1=489091&r2=489092
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserAttributeTypeDescriptionTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserAttributeTypeDescriptionTest.java
Wed Dec 20 05:55:05 2006
@@ -639,7 +639,7 @@
      * 
      * @throws ParseException
      */
-    public void testUniqueElements() throws ParseException
+    public void testUniqueElements()
     {
         String[] testValues = new String[]
             { 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserDITContentRuleDescriptionTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserDITContentRuleDescriptionTest.java?view=diff&rev=489092&r1=489091&r2=489092
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserDITContentRuleDescriptionTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserDITContentRuleDescriptionTest.java
Wed Dec 20 05:55:05 2006
@@ -455,7 +455,7 @@
      * 
      * @throws ParseException
      */
-    public void testUniqueElements() throws ParseException
+    public void testUniqueElements()
     {
         String[] testValues = new String[]
             { 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserLdapSyntaxDescriptionTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserLdapSyntaxDescriptionTest.java?view=diff&rev=489092&r1=489091&r2=489092
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserLdapSyntaxDescriptionTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserLdapSyntaxDescriptionTest.java
Wed Dec 20 05:55:05 2006
@@ -116,7 +116,7 @@
      * 
      * @throws ParseException
      */
-    public void testUniqueElements() throws ParseException
+    public void testUniqueElements()
     {
         String[] testValues = new String[]
             { 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserMatchingRuleUseDescriptionTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserMatchingRuleUseDescriptionTest.java?view=diff&rev=489092&r1=489091&r2=489092
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserMatchingRuleUseDescriptionTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserMatchingRuleUseDescriptionTest.java
Wed Dec 20 05:55:05 2006
@@ -283,7 +283,7 @@
      * 
      * @throws ParseException
      */
-    public void testUniqueElements() throws ParseException
+    public void testUniqueElements()
     {
         String[] testValues = new String[]
             { 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserNameFormDescriptionTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserNameFormDescriptionTest.java?view=diff&rev=489092&r1=489091&r2=489092
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserNameFormDescriptionTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserNameFormDescriptionTest.java
Wed Dec 20 05:55:05 2006
@@ -397,7 +397,7 @@
      * 
      * @throws ParseException
      */
-    public void testUniqueElements() throws ParseException
+    public void testUniqueElements()
     {
         String[] testValues = new String[]
             { 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserObjectClassDescriptionTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserObjectClassDescriptionTest.java?view=diff&rev=489092&r1=489091&r2=489092
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserObjectClassDescriptionTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserObjectClassDescriptionTest.java
Wed Dec 20 05:55:05 2006
@@ -453,7 +453,7 @@
      * 
      * @throws ParseException
      */
-    public void testUniqueElements() throws ParseException
+    public void testUniqueElements()
     {
         String[] testValues = new String[]
             { 

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserTestUtils.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserTestUtils.java?view=diff&rev=489092&r1=489091&r2=489092
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserTestUtils.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserTestUtils.java
Wed Dec 20 05:55:05 2006
@@ -326,16 +326,16 @@
         // escaped characters
         value = "( "+oid+" "+required+" DESC 'test\\5Ctest' )";
         asd = parser.parse( value );
-        TestCase.assertEquals( "test\\test", asd.getDescription() );
+        assertEquals( "test\\test", asd.getDescription() );
         value = "( "+oid+" "+required+" DESC 'test\\5ctest' )";
         asd = parser.parse( value );
-        TestCase.assertEquals( "test\\test", asd.getDescription() );
+        assertEquals( "test\\test", asd.getDescription() );
         value = "( "+oid+" "+required+" DESC 'test\\27test' )";
         asd = parser.parse( value );
-        TestCase.assertEquals( "test'test", asd.getDescription() );
+        assertEquals( "test'test", asd.getDescription() );
         value = "( "+oid+" "+required+" DESC '\\5C\\27\\5c' )";
         asd = parser.parse( value );
-        TestCase.assertEquals( "\\'\\", asd.getDescription() );
+        assertEquals( "\\'\\", asd.getDescription() );
         
         // lowercase
         value = "( "+oid+" "+required+" desc 'Descripton' )";



Mime
View raw message