assertEquals( "/bar/", table.getTableItem( 0 ).getText() );
}
@Test
public void storePreferences() {
IncludesView view = new IncludesView( parent, SWT.NONE, project );
SWTBotTable includeTable = findIncludeTable( view );
SWTBotTable excludeTable = findExcludeTable( view );
new TableItem( includeTable.widget, SWT.NONE ).setText( "/foo/" );
new TableItem( excludeTable.widget, SWT.NONE ).setText( "/bar/" );
view.storePreferences( preferences );
assertTrue( preferences.getIncludePatterns().contains( "/foo/" ) );
assertTrue( preferences.getExcludePatterns().contains( "/bar/" ) );
}