ArrangeableModel extends ExtendedDataModel<Object> implements Arrangeable { public int getRowCount() { if (rowKeys == null) { return -1; } else { return rowKeys.size(); } } ArrangeableModel(ExtendedDataModel<?> originalModel, String var, String filterVar); void addDataModelListener(DataModelListener listener); void removeDataModelListener(DataModelListener listener); DataModelListener[] getDataModelListeners(); Object getRowKey(); void setRowKey(Object key); void walk(FacesContext context, DataVisitor visitor, Range range, Object argument); int getRowCount(); Object getRowData(); int getRowIndex(); Object getWrappedData(); boolean isRowAvailable(); void setRowIndex(int rowIndex); void setWrappedData(Object data); void arrange(FacesContext context, ArrangeableState state);  }
@Test public void testGetRowCount() { Assert.assertEquals(ROW_KEY, arrangeableModel.getRowCount()); }