Esempio n. 1
0
  @Test
  public void checkNullsInGetElements() {
    assumeTrue(dataStructure instanceof INodeListDatastructureReadable);
    INodeListDatastructureReadable tempDS = (INodeListDatastructureReadable) dataStructure;

    dataStructure.reinitializeWithSize(10);
    for (IElement singleDummy : tempDS.getElements()) {
      assertNotNull(singleDummy);
    }
  }
Esempio n. 2
0
  @Test
  public void checkNullsInIterator() {
    IElement singleDummy;

    dataStructure.reinitializeWithSize(10);
    Iterator<IElement> elemIterator = dataStructure.iterator();
    while (elemIterator.hasNext()) {
      singleDummy = elemIterator.next();
      assertNotNull(singleDummy);
    }
  }