Bug 117192 [DataBinding] Test failure in TableScenarios.testScenario02 on Linux
Joe, do you have access to a Linux PC with GTK? We need to fix this asap or else we will keep breaking the builds. Another option would be to disable this test until we can fix it. junit.framework.ComparisonFailure: expected:<Bill> but was:<George> at org.eclipse.jface.tests.databinding.scenarios.TableScenarios.testScenario02(TableScenarios.java:145) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:330) at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:204) at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:35) at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:31) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:109) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:167) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/TableScenarios.java
Account[] accounts = catalog.getAccounts();	
		
		TableViewerDescription tableViewerDescription = new TableViewerDescription(
				tableViewer);
		tableViewerDescription.addColumn("firstName");
		tableViewerDescription.addColumn("lastName");
		tableViewerDescription.addColumn("state");
		getDbc().bind(tableViewerDescription,
				new PropertyDescription(catalog, "accounts"), null);
		
		
		assertEquals(tableViewer.getTable().getItemCount(),accounts.length);
		
		Account newAccount = new Account();
		newAccount.setFirstName("Finbar");
		newAccount.setLastName("McGoo");
		newAccount.setLastName("NC");
		catalog.addAccount(newAccount);
		
		assertEquals(tableViewer.getTable().getItemCount(),accounts.length + 1);
		
		assertEquals(tableViewer.getTable().getItemCount(),catalog.getAccounts().length);
		
		catalog.removeAccount(newAccount);
		
		assertEquals(tableViewer.getTable().getItemCount(),accounts.length);
		
		assertEquals(tableViewer.getTable().getItemCount(),catalog.getAccounts().length);		
		
	}