Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368030 - [Unit Test Failure] org.eclipse.emf.facet.widgets.table.tests.internal.v0_1.swtbot.NatTableUITests.testAddQueryColumn
Summary: [Unit Test Failure] org.eclipse.emf.facet.widgets.table.tests.internal.v0_1.s...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Gregoire Dupe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-06 08:48 EST by Gregoire Dupe CLA
Modified: 2020-05-01 11:26 EDT (History)
1 user (show)

See Also:
gdupe: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregoire Dupe CLA 2012-01-06 08:48:24 EST
expected:<1> but was:<2>

Stacktrace

java.lang.AssertionError: expected:<1> but was:<2>
	at org.eclipse.emf.facet.widgets.table.tests.internal.v0_1.swtbot.NatTableUITests.testAddQueryColumn(NatTableUITests.java:221)

since https://hudson.eclipse.org/hudson/job/emffacet-nightly-3.8/66/
Comment 1 Gregoire Dupe CLA 2012-01-06 09:45:23 EST
In NatTableUITests.testAddQueryColumn(), I've:
 - replaced SWTBotUtils.captureScreenShot by ScreenShotUtils.capture
 - added some "((ITableWidgetInternal) natTableWidget2).waitForResfreshJob()" statement before the assertions.

Committed revision 1467.
Comment 2 Gregoire Dupe CLA 2012-01-10 05:49:28 EST
I’ve modified the method ‘waitForResfreshJob’ to manage a state counter. This counter will be used to sure that the widget has changed since a previous step.

I’ve modified the method ‘org.eclipse.emf.facet.util.tests.swtbot.internal.exported.SWTBotUtils.captureScreenShot(String)’ to be use the class org.eclipse.emf.facet.util.tests.swtbot.internal.exported.ScreenShotUtils to perform the screen shot. ScreenShotUtils generated better file names.

Committed revision 1468.
Comment 3 Gregoire Dupe CLA 2012-01-10 10:34:26 EST
resoled: Back to normal in https://hudson.eclipse.org/hudson/job/emffacet-nightly-3.8/69/
Comment 4 Gregoire Dupe CLA 2012-01-11 03:27:53 EST
It fails again in https://hudson.eclipse.org/hudson/job/emffacet-nightly-3.8/70/

Assert the column is no longer there expected:<1> but was:<2>

Stacktrace

java.lang.AssertionError: Assert the column is no longer there expected:<1> but was:<2>
	at org.eclipse.emf.facet.widgets.table.tests.internal.v0_1.swtbot.NatTableUITests.testAddQueryColumn(NatTableUITests.java:230)
Comment 5 Gregoire Dupe CLA 2012-01-17 08:04:51 EST
Back to normal in https://hudson.eclipse.org/hudson/job/emffacet-nightly-3.8/71/
Comment 6 Gregoire Dupe CLA 2012-01-17 08:58:13 EST
This unit test has a random behavior during the Hudson build. Furthermore, if check a deprecated components. To avoid to spent useless time to fix the unit test, I chosen to retrieve it from the non regression test executed by Hudson. To not definitely disable it, I’ve moved it to a separate test class (same name than the original class but suffixed by “Unsafe”) which can be call by the developer to check that its modification didn’t break anything.

Committed revision 1496.
Comment 7 Gregoire Dupe CLA 2012-05-23 07:01:45 EDT
This bug can be closed.