removing impossible test for intvervalstore containing a string
[jalview.git] / test / intervalstore / nonc / IntervalStoreTest.java
index e21976a..0bf96bb 100644 (file)
@@ -198,14 +198,14 @@ public class IntervalStoreTest
     IntervalStore<SimpleFeature> store = new IntervalStore<>();
     SimpleFeature sf1 = add(store, 10, 20);
     assertTrue(store.contains(sf1));
-
-    try
-    {
-      store.remove("what is this?");
-    } catch (ClassCastException e)
-    {
-      // expected;
-    }
+    //
+    // try
+    // {
+    // store.remove("what is this?");
+    // } catch (ClassCastException e)
+    // {
+    // // expected;
+    // }
     assertFalse(store.remove(null));
 
     /*
@@ -261,27 +261,6 @@ public class IntervalStoreTest
     assertTrue(store.isEmpty());
   }
 
-  /**
-   * A helper method to test whether a list contains a specific object (by
-   * object identity, not equality test as used by List.contains())
-   * 
-   * @param list
-   * @param o
-   * @return
-   */
-  private static boolean containsObject(List<? extends Object> list,
-          Object o)
-  {
-    for (Object i : list)
-    {
-      if (i == o)
-      {
-        return true;
-      }
-    }
-    return false;
-  }
-
   @Test(groups = "Functional")
   public void testAdd()
   {
@@ -435,13 +414,13 @@ public class IntervalStoreTest
     assertTrue(store.contains(sf3));
 
     assertFalse(store.contains(null));
-    try
-    {
-      assertFalse(store.contains("junk"));
-    } catch (ClassCastException e)
-    {
-      // expected;
-    }
+    // try
+    // {
+    // assertFalse(store.contains("junk"));
+    // } catch (ClassCastException e)
+    // {
+    // // expected;
+    // }
   }
 
   @Test(groups = "Functional")
@@ -669,7 +648,8 @@ public class IntervalStoreTest
       }
       if (!isNCList)
       {
-        ((intervalstore.nonc.IntervalStore) store).revalidate();
+        ((intervalstore.nonc.IntervalStore<SimpleFeature>) store)
+                .revalidate();
       }
       String line = "time to load " + (isNCList ? "NClist " : "NCArray ")
               + (System.nanoTime() - ntimeLoad) / K / K + " ms scale "