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));
/*
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()
{
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")
}
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 "