You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertThat("Tab " + i + " should not have been initialized", not(((SpyTab) tabs[i]).isInitialized()));
The test class erroneously imports AssertJ's assertThat to which passing a matcher object is valid (other than to Hamcrests assertThat), but AssertJ's assertThat does nothing if no actual assert method is called afterwards (such as isTrue() for a boolean assertion). Thus, the two assertions using not within this class do actually not assert anything.
In addition, one of the assertions, namely the one in LaunchConfigurationTabGroupViewerTest#testOnlyDefaultTabInOtherConfigIsActivated(), fails if it is corrected. The tabs are initialized although they are assumed to not have been initialized. So there is either a flaw in the test or some bug in the tested code.
A correction could look as follows:
assertThat((((SpyTab) tabs[i]).isInitialized())).describedAs("Tab " + i + " should not have been initialized").isFalse();
Activity
Fix tests in LaunchConfigurationTabGroupViewerTest eclipse-platform#1075
Fix tests in LaunchConfigurationTabGroupViewerTest eclipse-platform#1075
Fix tests in LaunchConfigurationTabGroupViewerTest eclipse-platform#1075
Fix tests in LaunchConfigurationTabGroupViewerTest #1075