FileDocCategorySizeDatePackage
TestBasicList.javaAPI DocApache Lucene 1.91614Mon Feb 20 09:18:14 GMT 2006org.apache.lucene.swing.models

TestBasicList

public class TestBasicList extends TestCase
author
Jonathan Simon - jonathan_s_simon@yahoo.com

Fields Summary
private ListModel
baseListModel
private ListSearcher
listSearcher
private ArrayList
list
Constructors Summary
Methods Summary
protected voidsetUp()

        list = new ArrayList();
        list.add(DataStore.canolis);
        list.add(DataStore.chris);

        baseListModel = new BaseListModel(list.iterator());
        listSearcher = new ListSearcher(baseListModel);
    
public voidtestRows()

        assertEquals(list.size(), listSearcher.getSize());
    
public voidtestValueAt()

        assertEquals(baseListModel.getElementAt(0), listSearcher.getElementAt(0));
        assertNotSame(baseListModel.getElementAt(1), listSearcher.getElementAt(0));