@Test(groups = "Functional")
public void testFindOverlaps_nonNested()
{
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
SimpleFeature sf1 = add(store, 10, 20);
// same range different description
SimpleFeature sf2 = new SimpleFeature(10, 20, "desc");
@Test(groups = "Functional")
public void testFindOverlaps_nested()
{
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
SimpleFeature sf1 = add(store, 10, 50);
SimpleFeature sf2 = add(store, 10, 40);
SimpleFeature sf3 = add(store, 20, 30);
@Test(groups = "Functional")
public void testFindOverlaps_mixed()
{
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
SimpleFeature sf1 = add(store, 10, 50);
SimpleFeature sf2 = add(store, 1, 15);
SimpleFeature sf3 = add(store, 20, 30);
@Test(groups = "Functional")
public void testRemove()
{
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
SimpleFeature sf1 = add(store, 10, 20);
assertTrue(store.contains(sf1));
@Test(groups = "Functional")
public void testAdd()
{
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
assertFalse(store.add(null));
@Test(groups = "Functional")
public void testAdd_noDuplicates()
{
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
SimpleFeature sf1 = new SimpleFeature(10, 20, "Cath");
SimpleFeature sf2 = new SimpleFeature(10, 20, "Cath");
@Test(groups = "Functional")
public void testIsEmpty()
{
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
assertTrue(store.isEmpty());
assertEquals(store.size(), 0);
/*
* add a feature and a nested feature
*/
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
SimpleFeature sf1 = add(store, 10, 20);
// sf2 is nested in sf1 so will be stored in nestedFeatures
SimpleFeature sf2 = add(store, 12, 14);
@Test(groups = "Functional")
public void testContains()
{
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
SimpleFeature sf1 = new SimpleFeature(10, 20, "Cath");
SimpleFeature sf2 = new SimpleFeature(10, 20, "Pfam");
@Test(groups = "Functional")
public void testFindOverlaps_resultsArg_mixed()
{
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
SimpleFeature sf1 = add(store, 10, 50);
SimpleFeature sf2 = add(store, 1, 15);
SimpleFeature sf3 = add(store, 20, 30);
@Test(groups = "Functional")
public void testFindOverlaps_resultsArg_nested()
{
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
SimpleFeature sf1 = add(store, 10, 50);
SimpleFeature sf2 = add(store, 10, 40);
SimpleFeature sf3 = add(store, 20, 30);
@Test(groups = "Functional")
public void testFindOverlaps_resultsArg_nonNested()
{
- IntervalStore<SimpleFeature> store = new IntervalStore<>();
+ IntervalStore<SimpleFeature> store = new IntervalStoreImpl();
SimpleFeature sf1 = add(store, 10, 20);
// same range different description
SimpleFeature sf2 = new SimpleFeature(10, 20, "desc");