Project: SWT
Bug 33086 [JUNIT]TabFolder.setSelection to an invalid index does not leave selection unchanged
Reported: 2003-02-25 14:35:02 | Status: resolved fixed

I20030221 Test_org_eclipse_swt_widgets_TabFolder.test_setSelectionI junit.framework.AssertionFailedError: expected:< [Lorg.eclipse.swt.widgets.TabItem;@2ea957> but was:< [Lorg.eclipse.swt.widgets.TabItem;@6f9335> at junit.framework.Assert.fail(Assert.java:47) at org.eclipse.swt.tests.junit.SwtTestCase.failNotEquals(SwtTestCase.java:99) at org.eclipse.swt.tests.junit.SwtTestCase.assertEquals(SwtTestCase.java:67) at org.eclipse.swt.tests.junit.SwtTestCase.assertEquals(SwtTestCase.java:71) at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_TabFolder.test_setSelectionI(T est_org_eclipse_swt_widgets_TabFolder.java:311) at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_TabFolder.runTest(Test_org_e clipse_swt_widgets_TabFolder.java:419) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.jav a:377) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:261) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:15 2) at java.lang.reflect.Method.invoke(Native Method) at com.apple.buckyball.app.LaunchRunner.run(LaunchRunner.java:82) at com.apple.buckyball.app.LaunchRunner.callMain(LaunchRunner.java:44) at com.apple.buckyball.app.CarbonLibApp.launch(CarbonLibApp.java:67)

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TabFolder.java