directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r760931 - /directory/apacheds/branches/ldif-partition/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDuplicatesTest.java
Date Wed, 01 Apr 2009 15:46:53 GMT
Author: akarasulu
Date: Wed Apr  1 15:46:53 2009
New Revision: 760931

URL: http://svn.apache.org/viewvc?rev=760931&view=rev
Log:
cleaning up warnings for generics and making put() test more relavent by changing value

Modified:
    directory/apacheds/branches/ldif-partition/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDuplicatesTest.java

Modified: directory/apacheds/branches/ldif-partition/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDuplicatesTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDuplicatesTest.java?rev=760931&r1=760930&r2=760931&view=diff
==============================================================================
--- directory/apacheds/branches/ldif-partition/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDuplicatesTest.java
(original)
+++ directory/apacheds/branches/ldif-partition/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDuplicatesTest.java
Wed Apr  1 15:46:53 2009
@@ -60,7 +60,7 @@
     @Before
     public void createTable() throws Exception
     {
-        destryTable();
+        destroyTable();
         File tmpDir = null;
         if ( System.getProperty( TEST_OUTPUT_PATH, null ) != null )
         {
@@ -78,7 +78,7 @@
 
 
     @After
-    public void destryTable() throws Exception
+    public void destroyTable() throws Exception
     {
         if ( table != null )
         {
@@ -269,8 +269,8 @@
             table.put( ii, ii );
         }
         assertEquals( SIZE, table.count() );
-        table.put( 0, 0 );
-        assertTrue( table.has( 0, 0 ) );
+        table.put( 0, 2345 );
+        assertTrue( table.has( 0, 2345 ) );
     }
     
 
@@ -338,7 +338,7 @@
     
     private class MockComparatorRegistry implements ComparatorRegistry
     {
-        private Comparator comparator = new Comparator<Integer>()
+        private Comparator<Integer> comparator = new Comparator<Integer>()
         {
             public int compare( Integer i1, Integer i2 )
             {
@@ -353,12 +353,13 @@
         }
 
 
+        @SuppressWarnings("unchecked")
         public void register( ComparatorDescription description, Comparator comparator )
throws NamingException
         {
         }
 
 
-        public Comparator lookup( String oid ) throws NamingException
+        public Comparator<Integer> lookup( String oid ) throws NamingException
         {
             return comparator;
         }



Mime
View raw message