directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1682412 - in /directory/shared/trunk/ldap: client/api/src/test/java/org/apache/directory/ldap/client/api/LdifAnonymizerTest.java extras/codec/src/test/java/org/apache/directory/api/ldap/extras/controls/vlv/VLVTest.java
Date Fri, 29 May 2015 10:07:55 GMT
Author: elecharny
Date: Fri May 29 10:07:55 2015
New Revision: 1682412

URL: http://svn.apache.org/r1682412
Log:
Removed some warnings

Modified:
    directory/shared/trunk/ldap/client/api/src/test/java/org/apache/directory/ldap/client/api/LdifAnonymizerTest.java
    directory/shared/trunk/ldap/extras/codec/src/test/java/org/apache/directory/api/ldap/extras/controls/vlv/VLVTest.java

Modified: directory/shared/trunk/ldap/client/api/src/test/java/org/apache/directory/ldap/client/api/LdifAnonymizerTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/test/java/org/apache/directory/ldap/client/api/LdifAnonymizerTest.java?rev=1682412&r1=1682411&r2=1682412&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/test/java/org/apache/directory/ldap/client/api/LdifAnonymizerTest.java
(original)
+++ directory/shared/trunk/ldap/client/api/src/test/java/org/apache/directory/ldap/client/api/LdifAnonymizerTest.java
Fri May 29 10:07:55 2015
@@ -42,7 +42,7 @@ public class LdifAnonymizerTest
                 "sn: elecharny\n";
 
         LdifAnonymizer anonymizer = new LdifAnonymizer();
-        String result = anonymizer.anonymize( ldif );
+        anonymizer.anonymize( ldif );
     }
 
 
@@ -60,7 +60,7 @@ public class LdifAnonymizerTest
                 "givenname: test\n";
 
         LdifAnonymizer anonymizer = new LdifAnonymizer();
-        String result = anonymizer.anonymize( ldif );
+         anonymizer.anonymize( ldif );
     }
 
 
@@ -79,6 +79,6 @@ public class LdifAnonymizerTest
                 "givenname: test\n";
 
         LdifAnonymizer anonymizer = new LdifAnonymizer();
-        String result = anonymizer.anonymize( ldif );
+        anonymizer.anonymize( ldif );
     }
 }

Modified: directory/shared/trunk/ldap/extras/codec/src/test/java/org/apache/directory/api/ldap/extras/controls/vlv/VLVTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/test/java/org/apache/directory/api/ldap/extras/controls/vlv/VLVTest.java?rev=1682412&r1=1682411&r2=1682412&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/test/java/org/apache/directory/api/ldap/extras/controls/vlv/VLVTest.java
(original)
+++ directory/shared/trunk/ldap/extras/codec/src/test/java/org/apache/directory/api/ldap/extras/controls/vlv/VLVTest.java
Fri May 29 10:07:55 2015
@@ -304,7 +304,7 @@ public class VLVTest extends AbstractCod
         bb.flip();
 
         VirtualListViewRequestDecorator control = new VirtualListViewRequestDecorator( codec
);
-        VirtualListViewRequest virtualListView = ( VirtualListViewRequest ) control.decode(
bb.array() );
+        control.decode( bb.array() );
         fail();
     }
 
@@ -339,7 +339,8 @@ public class VLVTest extends AbstractCod
         bb.flip();
 
         VirtualListViewRequestDecorator control = new VirtualListViewRequestDecorator( codec
);
-        VirtualListViewRequest virtualListView = ( VirtualListViewRequest ) control.decode(
bb.array() );
+        control.decode( bb.array() );
+        fail();
     }
 
 
@@ -371,7 +372,8 @@ public class VLVTest extends AbstractCod
         bb.flip();
 
         VirtualListViewRequestDecorator control = new VirtualListViewRequestDecorator( codec
);
-        VirtualListViewRequest virtualListView = ( VirtualListViewRequest ) control.decode(
bb.array() );
+        control.decode( bb.array() );
+        fail();
     }
 
 
@@ -398,7 +400,8 @@ public class VLVTest extends AbstractCod
         bb.flip();
 
         VirtualListViewRequestDecorator control = new VirtualListViewRequestDecorator( codec
);
-        VirtualListViewRequest virtualListView = ( VirtualListViewRequest ) control.decode(
bb.array() );
+        control.decode( bb.array() );
+        fail();
     }
 
 
@@ -427,7 +430,8 @@ public class VLVTest extends AbstractCod
         bb.flip();
 
         VirtualListViewRequestDecorator control = new VirtualListViewRequestDecorator( codec
);
-        VirtualListViewRequest virtualListView = ( VirtualListViewRequest ) control.decode(
bb.array() );
+        control.decode( bb.array() );
+        fail();
     }
 
 
@@ -498,7 +502,8 @@ public class VLVTest extends AbstractCod
         bb.flip();
 
         VirtualListViewRequestDecorator control = new VirtualListViewRequestDecorator( codec
);
-        VirtualListViewRequest virtualListView = ( VirtualListViewRequest ) control.decode(
bb.array() );
+        control.decode( bb.array() );
+        fail();
     }
 
 
@@ -533,6 +538,7 @@ public class VLVTest extends AbstractCod
         bb.flip();
 
         VirtualListViewRequestDecorator control = new VirtualListViewRequestDecorator( codec
);
-        VirtualListViewRequest virtualListView = ( VirtualListViewRequest ) control.decode(
bb.array() );
+        control.decode( bb.array() );
+        fail();
     }
 }



Mime
View raw message